亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? stm32f10x_can.h

?? Cortex-M3 CAN源代碼
?? H
?? 第 1 頁 / 共 2 頁
字號:
/**
  ******************************************************************************
  * @file    stm32f10x_can.h
  * @author  MCD Application Team
  * @version V3.1.0
  * @date    06/19/2009
  * @brief   This file contains all the functions prototypes for the CAN firmware 
  *          library.
  ******************************************************************************
  * @copy
  *
  * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
  * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
  * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  *
  * <h2><center>&copy; COPYRIGHT 2009 STMicroelectronics</center></h2>
  */ 

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __STM32F10x_CAN_H
#define __STM32F10x_CAN_H

#ifdef __cplusplus
 extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f10x.h"

/** @addtogroup STM32F10x_StdPeriph_Driver
  * @{
  */

/** @addtogroup CAN
  * @{
  */

/** @defgroup CAN_Exported_Types
  * @{
  */

#define IS_CAN_ALL_PERIPH(PERIPH) (((PERIPH) == CAN1) || \
                                   ((PERIPH) == CAN2))

/** 
  * @brief  CAN init structure definition
  */

typedef struct
{
  uint16_t CAN_Prescaler;   /*!< Specifies the length of a time quantum. It ranges from 1 to 1024. */
  
  uint8_t CAN_Mode;         /*!< Specifies the CAN operating mode.
                                 This parameter can be a value of @ref CAN_operating_mode */

  uint8_t CAN_SJW;          /*!< Specifies the maximum number of time quanta the CAN hardware
                                 is allowed to lengthen or shorten a bit to perform resynchronization.
                                 This parameter can be a value of @ref CAN_synchronisation_jump_width */

  uint8_t CAN_BS1;          /*!< Specifies the number of time quanta in Bit Segment 1.
                                 This parameter can be a value of @ref CAN_time_quantum_in_bit_segment_1 */

  uint8_t CAN_BS2;          /*!< Specifies the number of time quanta in Bit Segment 2.
                                 This parameter can be a value of @ref CAN_time_quantum_in_bit_segment_2 */
  
  FunctionalState CAN_TTCM; /*!< Enable or disable the time triggered communication mode.
                                 This parameter can be set either to ENABLE or DISABLE. */
  
  FunctionalState CAN_ABOM;  /*!< Enable or disable the automatic bus-off management.
                                 This parameter can be set either to ENABLE or DISABLE. */

  FunctionalState CAN_AWUM;  /*!< Enable or disable the automatic wake-up mode. 
                                 This parameter can be set either to ENABLE or DISABLE. */

  FunctionalState CAN_NART;  /*!< Enable or disable the no-automatic retransmission mode.
                                 This parameter can be set either to ENABLE or DISABLE. */

  FunctionalState CAN_RFLM;  /*!< Enable or disable the Receive FIFO Locked mode.
                                 This parameter can be set either to ENABLE or DISABLE. */

  FunctionalState CAN_TXFP;  /*!< Enable or disable the transmit FIFO priority.
                                 This parameter can be set either to ENABLE or DISABLE. */
} CAN_InitTypeDef;

/** 
  * @brief  CAN filter init structure definition
  */

typedef struct
{
  uint16_t CAN_FilterIdHigh;             /*!< Specifies the filter identification number (MSBs for a 32-bit
                                              configuration, first one for a 16-bit configuration).
                                              This parameter can be a value between 0x0000 and 0xFFFF */

  uint16_t CAN_FilterIdLow;              /*!< Specifies the filter identification number (LSBs for a 32-bit
                                              configuration, second one for a 16-bit configuration).
                                              This parameter can be a value between 0x0000 and 0xFFFF */

  uint16_t CAN_FilterMaskIdHigh;         /*!< Specifies the filter mask number or identification number,
                                              according to the mode (MSBs for a 32-bit configuration,
                                              first one for a 16-bit configuration).
                                              This parameter can be a value between 0x0000 and 0xFFFF */

  uint16_t CAN_FilterMaskIdLow;          /*!< Specifies the filter mask number or identification number,
                                              according to the mode (LSBs for a 32-bit configuration,
                                              second one for a 16-bit configuration).
                                              This parameter can be a value between 0x0000 and 0xFFFF */

  uint16_t CAN_FilterFIFOAssignment;     /*!< Specifies the FIFO (0 or 1) which will be assigned to the filter.
                                              This parameter can be a value of @ref CAN_filter_FIFO */
  
  uint8_t CAN_FilterNumber;              /*!< Specifies the filter which will be initialized. It ranges from 0 to 13. */

  uint8_t CAN_FilterMode;                /*!< Specifies the filter mode to be initialized.
                                              This parameter can be a value of @ref CAN_filter_mode */

  uint8_t CAN_FilterScale;               /*!< Specifies the filter scale.
                                              This parameter can be a value of @ref CAN_filter_scale */

  FunctionalState CAN_FilterActivation;  /*!< Enable or disable the filter.
                                              This parameter can be set either to ENABLE or DISABLE. */
} CAN_FilterInitTypeDef;

/** 
  * @brief  CAN Tx message structure definition  
  */

typedef struct
{
  uint32_t StdId;  /*!< Specifies the standard identifier.
                        This parameter can be a value between 0 to 0x7FF. */

  uint32_t ExtId;  /*!< Specifies the extended identifier.
                        This parameter can be a value between 0 to 0x1FFFFFFF. */

  uint8_t IDE;     /*!< Specifies the type of identifier for the message that will be transmitted.
                        This parameter can be a value of @ref CAN_identifier_type */

  uint8_t RTR;     /*!< Specifies the type of frame for the message that will be transmitted.
                        This parameter can be a value of @ref CAN_remote_transmission_request */

  uint8_t DLC;     /*!< Specifies the length of the frame that will be transmitted.
                        This parameter can be a value between 0 to 8 */

  uint8_t Data[8]; /*!< Contains the data to be transmitted. It ranges from 0 to 0xFF. */
} CanTxMsg;

/** 
  * @brief  CAN Rx message structure definition  
  */

typedef struct
{
  uint32_t StdId;  /*!< Specifies the standard identifier.
                        This parameter can be a value between 0 to 0x7FF. */

  uint32_t ExtId;  /*!< Specifies the extended identifier.
                        This parameter can be a value between 0 to 0x1FFFFFFF. */

  uint8_t IDE;     /*!< Specifies the type of identifier for the message that will be received.
                        This parameter can be a value of @ref CAN_identifier_type */

  uint8_t RTR;     /*!< Specifies the type of frame for the received message.
                        This parameter can be a value of @ref CAN_remote_transmission_request */

  uint8_t DLC;     /*!< Specifies the length of the frame that will be received.
                        This parameter can be a value between 0 to 8 */

  uint8_t Data[8]; /*!< Contains the data to be received. It ranges from 0 to 0xFF. */

  uint8_t FMI;     /*!< Specifies the index of the filter the message stored in the mailbox passes through.
                        This parameter can be a value between 0 to 0xFF */
} CanRxMsg;

/**
  * @}
  */

/** @defgroup CAN_Exported_Constants
  * @{
  */

/** @defgroup CAN_sleep_constants 
  * @{
  */

#define CANINITFAILED              ((uint8_t)0x00) /*!< CAN initialization failed */
#define CANINITOK                  ((uint8_t)0x01) /*!< CAN initialization failed */

/**
  * @}
  */

/** @defgroup CAN_operating_mode 
  * @{
  */

#define CAN_Mode_Normal             ((uint8_t)0x00)  /*!< normal mode */
#define CAN_Mode_LoopBack           ((uint8_t)0x01)  /*!< loopback mode */
#define CAN_Mode_Silent             ((uint8_t)0x02)  /*!< silent mode */
#define CAN_Mode_Silent_LoopBack    ((uint8_t)0x03)  /*!< loopback combined with silent mode */

#define IS_CAN_MODE(MODE) (((MODE) == CAN_Mode_Normal) || ((MODE) == CAN_Mode_LoopBack)|| \
                           ((MODE) == CAN_Mode_Silent) || ((MODE) == CAN_Mode_Silent_LoopBack))
/**
  * @}
  */

/** @defgroup CAN_synchronisation_jump_width 
  * @{
  */

#define CAN_SJW_1tq                 ((uint8_t)0x00)  /*!< 1 time quantum */
#define CAN_SJW_2tq                 ((uint8_t)0x01)  /*!< 2 time quantum */
#define CAN_SJW_3tq                 ((uint8_t)0x02)  /*!< 3 time quantum */
#define CAN_SJW_4tq                 ((uint8_t)0x03)  /*!< 4 time quantum */

#define IS_CAN_SJW(SJW) (((SJW) == CAN_SJW_1tq) || ((SJW) == CAN_SJW_2tq)|| \
                         ((SJW) == CAN_SJW_3tq) || ((SJW) == CAN_SJW_4tq))
/**
  * @}
  */

/** @defgroup CAN_time_quantum_in_bit_segment_1 
  * @{
  */

#define CAN_BS1_1tq                 ((uint8_t)0x00)  /*!< 1 time quantum */
#define CAN_BS1_2tq                 ((uint8_t)0x01)  /*!< 2 time quantum */
#define CAN_BS1_3tq                 ((uint8_t)0x02)  /*!< 3 time quantum */
#define CAN_BS1_4tq                 ((uint8_t)0x03)  /*!< 4 time quantum */
#define CAN_BS1_5tq                 ((uint8_t)0x04)  /*!< 5 time quantum */
#define CAN_BS1_6tq                 ((uint8_t)0x05)  /*!< 6 time quantum */
#define CAN_BS1_7tq                 ((uint8_t)0x06)  /*!< 7 time quantum */
#define CAN_BS1_8tq                 ((uint8_t)0x07)  /*!< 8 time quantum */
#define CAN_BS1_9tq                 ((uint8_t)0x08)  /*!< 9 time quantum */
#define CAN_BS1_10tq                ((uint8_t)0x09)  /*!< 10 time quantum */
#define CAN_BS1_11tq                ((uint8_t)0x0A)  /*!< 11 time quantum */
#define CAN_BS1_12tq                ((uint8_t)0x0B)  /*!< 12 time quantum */
#define CAN_BS1_13tq                ((uint8_t)0x0C)  /*!< 13 time quantum */
#define CAN_BS1_14tq                ((uint8_t)0x0D)  /*!< 14 time quantum */
#define CAN_BS1_15tq                ((uint8_t)0x0E)  /*!< 15 time quantum */
#define CAN_BS1_16tq                ((uint8_t)0x0F)  /*!< 16 time quantum */

#define IS_CAN_BS1(BS1) ((BS1) <= CAN_BS1_16tq)
/**
  * @}
  */

/** @defgroup CAN_time_quantum_in_bit_segment_2 
  * @{
  */

#define CAN_BS2_1tq                 ((uint8_t)0x00)  /*!< 1 time quantum */
#define CAN_BS2_2tq                 ((uint8_t)0x01)  /*!< 2 time quantum */
#define CAN_BS2_3tq                 ((uint8_t)0x02)  /*!< 3 time quantum */
#define CAN_BS2_4tq                 ((uint8_t)0x03)  /*!< 4 time quantum */
#define CAN_BS2_5tq                 ((uint8_t)0x04)  /*!< 5 time quantum */
#define CAN_BS2_6tq                 ((uint8_t)0x05)  /*!< 6 time quantum */
#define CAN_BS2_7tq                 ((uint8_t)0x06)  /*!< 7 time quantum */
#define CAN_BS2_8tq                 ((uint8_t)0x07)  /*!< 8 time quantum */

#define IS_CAN_BS2(BS2) ((BS2) <= CAN_BS2_8tq)

/**

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品一区二区三区免费视频| a在线欧美一区| 7777精品伊人久久久大香线蕉经典版下载 | 精品理论电影在线观看| 蜜臀久久99精品久久久久宅男| 91精品国产91综合久久蜜臀| 肉肉av福利一精品导航| 精品国精品国产尤物美女| 国产尤物一区二区在线| 中文字幕巨乱亚洲| 在线观看一区日韩| 日本少妇一区二区| 国产欧美日韩久久| 欧美在线影院一区二区| 日本怡春院一区二区| 久久久电影一区二区三区| 懂色av中文字幕一区二区三区| 亚洲欧美自拍偷拍| 欧美日韩国产一级| 国产麻豆日韩欧美久久| 亚洲精品久久7777| 日韩一区二区三| 成人免费看片app下载| 亚洲视频资源在线| 欧美一二三区精品| 99视频精品全部免费在线| 亚洲夂夂婷婷色拍ww47| 精品少妇一区二区三区视频免付费 | 亚洲人成小说网站色在线| 欧美日韩国产一二三| 国产+成+人+亚洲欧洲自线| 一区二区三区四区不卡在线| 日韩视频在线你懂得| 99精品久久久久久| 国内精品国产成人| 亚洲综合激情网| 国产三级一区二区三区| 91精品在线观看入口| 99久久久久免费精品国产| 精品一区精品二区高清| 亚洲小说欧美激情另类| 国产欧美日韩三级| 日韩欧美国产综合在线一区二区三区| 成av人片一区二区| 黑人巨大精品欧美一区| 亚洲成人av中文| 日韩理论在线观看| 久久久99精品久久| 91精品欧美一区二区三区综合在| 成人av免费在线| 国产一区二区91| 欧美日韩国产首页| 亚洲福利视频一区二区| 中文字幕的久久| 2023国产精品自拍| 91精品国产色综合久久| 欧美视频自拍偷拍| 色婷婷激情久久| 99re亚洲国产精品| 成人性生交大片免费看中文| 韩国视频一区二区| 久久国产剧场电影| 久久精品理论片| 免费在线看成人av| 免费成人在线视频观看| 日韩国产欧美在线播放| 亚洲综合免费观看高清完整版在线| 1024国产精品| 日韩毛片视频在线看| 国产精品久久影院| 国产精品国产三级国产aⅴ无密码| 国产色产综合色产在线视频| 久久久久综合网| 久久久久国产精品人| 久久亚洲一区二区三区明星换脸| 欧美精品一区二区高清在线观看| 欧美一区二区成人6969| 日韩欧美www| 久久伊人中文字幕| 中文一区二区在线观看| 亚洲欧洲精品一区二区三区| 国产精品白丝在线| 一区二区在线免费| 午夜欧美电影在线观看| 热久久久久久久| 久久国内精品视频| 国产精品一区二区果冻传媒| 粉嫩13p一区二区三区| 99综合电影在线视频| jizz一区二区| 欧美系列一区二区| 制服丝袜在线91| 精品欧美乱码久久久久久1区2区| 久久综合五月天婷婷伊人| 欧美国产乱子伦 | 久久激五月天综合精品| 国产乱对白刺激视频不卡| 丁香婷婷深情五月亚洲| 99亚偷拍自图区亚洲| 欧美制服丝袜第一页| 日韩三级精品电影久久久| 亚洲精品一区二区三区在线观看| 国产午夜精品一区二区三区四区| 亚洲欧洲精品成人久久奇米网| 久久女同精品一区二区| 99综合电影在线视频| www.欧美日韩| 欧美性大战久久久久久久蜜臀| 日韩国产一区二| 一片黄亚洲嫩模| 视频一区在线视频| 国产精品一二三| 欧美三级中文字| 久久综合色婷婷| 一区二区三区蜜桃| 国产精品影音先锋| 欧美丝袜丝交足nylons图片| 欧美xxx久久| 一区二区视频在线| 极品少妇xxxx精品少妇偷拍| 北条麻妃一区二区三区| 欧美日韩成人综合天天影院| 久久久久久影视| 香港成人在线视频| 99久久免费视频.com| 日韩一级完整毛片| 亚洲综合丁香婷婷六月香| 国产91富婆露脸刺激对白| 欧美系列在线观看| 国产精品每日更新在线播放网址| 天天综合日日夜夜精品| 99精品视频在线播放观看| 精品剧情在线观看| 亚洲一区二区三区美女| 国产精品一区在线| 日韩视频不卡中文| 午夜成人免费视频| 91成人看片片| 亚洲欧美一区二区视频| 国产乱一区二区| 欧美一级欧美三级在线观看| 一区二区三区自拍| 91小宝寻花一区二区三区| 国产日本亚洲高清| 麻豆成人久久精品二区三区红 | 久久精品久久综合| 欧美丝袜丝交足nylons| 亚洲人成网站在线| 99在线精品免费| 国产欧美久久久精品影院| 麻豆精品国产传媒mv男同| 欧美久久久久免费| 亚洲国产精品人人做人人爽| 91首页免费视频| 国产精品二三区| 成人国产精品免费观看| 国产欧美日韩在线| 成人精品一区二区三区四区| 久久久www成人免费毛片麻豆| 久久激五月天综合精品| 日韩欧美一卡二卡| 精品在线免费观看| 26uuu亚洲婷婷狠狠天堂| 久久综合综合久久综合| 精品乱人伦小说| 国产精品自拍一区| 久久久国产一区二区三区四区小说| 国内精品嫩模私拍在线| 2021国产精品久久精品| 国产成人啪免费观看软件| 国产亚洲欧美日韩日本| 懂色av中文字幕一区二区三区| 欧美国产日韩a欧美在线观看| 成人开心网精品视频| 国产精品久久久久久妇女6080| 99久久久久久| 亚洲综合免费观看高清完整版| 欧美日韩一区精品| 日本va欧美va精品| 欧美电影免费观看高清完整版在 | 亚洲国产精品精华液网站| 欧美视频在线一区| 五月激情六月综合| 精品欧美久久久| 成人免费观看av| 亚洲欧美激情在线| 6080午夜不卡| 狠狠狠色丁香婷婷综合久久五月| 国产婷婷一区二区| 色av一区二区| 麻豆视频一区二区| 国产精品免费av| 欧美性视频一区二区三区| 男女性色大片免费观看一区二区| 欧美精品一区二区三区高清aⅴ | 亚洲色图视频网站| 欧洲另类一二三四区| 久久精品国产亚洲5555| 中文字幕欧美日韩一区| 欧美主播一区二区三区美女|