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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? stm32f10x_can.h

?? STM32SDCardSourceCodeFATFS.rar
?? H
?? 第 1 頁 / 共 2 頁
字號:
/**
  ******************************************************************************
  * @file    stm32f10x_can.h
  * @author  MCD Application Team
  * @version V3.1.2
  * @date    09/28/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一区二区三区免费野_久草精品视频
久久精品免视看| 精品一区二区在线看| 成人高清视频免费观看| 精品国精品自拍自在线| 天天影视涩香欲综合网| 欧美精品一级二级| 蜜桃精品视频在线| 久久久久久99精品| 不卡高清视频专区| 亚洲精品v日韩精品| 欧美色图一区二区三区| 美女免费视频一区二区| 精品国产免费视频| 成人免费观看视频| 亚洲午夜日本在线观看| 日韩一区二区免费在线观看| 狠狠久久亚洲欧美| 中文字幕欧美一区| 欧美日韩亚洲综合在线| 精品一区二区精品| 国产精品色噜噜| 欧美三级三级三级爽爽爽| 日韩激情一二三区| 国产欧美日韩在线| 欧美无乱码久久久免费午夜一区| 奇米精品一区二区三区在线观看 | 国产精品三级久久久久三级| 成人免费视频一区| 日韩和欧美一区二区三区| 久久久五月婷婷| 91成人免费在线| 精品一区二区三区免费观看| 综合久久久久久| 精品99一区二区三区| av在线不卡观看免费观看| 亚洲成在线观看| 久久久国产精华| 欧美理论片在线| 成人丝袜视频网| 美日韩一区二区三区| 中文字幕在线观看不卡| 日韩一二三四区| 在线视频你懂得一区二区三区| 麻豆精品在线播放| 亚洲曰韩产成在线| 国产精品美女久久久久久久久| 欧美日韩五月天| 97精品国产97久久久久久久久久久久| 免费精品视频在线| 亚洲成人自拍网| 中文字幕一区二区三区在线观看| 日韩一区二区免费视频| 欧美性xxxxxxxx| 99视频热这里只有精品免费| 狠狠色狠狠色综合日日91app| 亚洲一区二区三区国产| 国产精品福利一区| 久久久不卡网国产精品一区| 日韩一级大片在线| 欧美人狂配大交3d怪物一区| 成人97人人超碰人人99| 狠狠色丁香久久婷婷综| 美女在线观看视频一区二区| 亚洲高清免费在线| 亚洲综合色成人| 亚洲欧美日韩精品久久久久| 久久久久久99精品| 久久久一区二区三区| 日韩精品影音先锋| 91精品免费观看| 7777精品伊人久久久大香线蕉超级流畅 | 欧美日韩一区久久| 在线观看中文字幕不卡| 3atv一区二区三区| 欧美亚洲动漫精品| 在线精品亚洲一区二区不卡| 一本色道久久综合狠狠躁的推荐| 99在线视频精品| 91在线观看美女| 色婷婷精品大在线视频| 欧洲国内综合视频| 欧美日韩国产成人在线免费| 欧美三级电影在线看| 欧美日本高清视频在线观看| 欧美精品高清视频| 日韩午夜电影在线观看| 日韩精品一区二区三区在线播放 | 精品久久久三级丝袜| 日韩视频一区二区三区| 精品国产电影一区二区| 久久精品在这里| 国产精品久久久久aaaa| 亚洲九九爱视频| 午夜激情一区二区| 久久99热国产| 成人网页在线观看| 在线观看国产精品网站| 91精品欧美福利在线观看| 精品91自产拍在线观看一区| 久久精品欧美日韩精品| 亚洲视频在线一区观看| 亚洲va韩国va欧美va| 毛片av中文字幕一区二区| 国产91丝袜在线18| 在线亚洲一区二区| 日韩一区二区三区视频在线| 久久精品一区二区三区四区| 国产精品成人一区二区艾草| 亚洲国产精品久久人人爱| 麻豆成人久久精品二区三区红 | 欧美日韩精品欧美日韩精品一综合| 欧美猛男gaygay网站| 26uuu亚洲综合色| 亚洲欧美影音先锋| 日本aⅴ免费视频一区二区三区| 国产一区二区网址| 日本高清不卡视频| 精品粉嫩超白一线天av| 国产精品国产三级国产| 日韩精品国产欧美| 成人激情小说网站| 91精品国产综合久久香蕉的特点 | 国产三级一区二区三区| 亚洲精品国产一区二区三区四区在线| 丝袜亚洲精品中文字幕一区| 国产成人av电影在线| 欧美日韩不卡在线| 中文字幕一区二区三区四区不卡| 婷婷综合五月天| 不卡av免费在线观看| 欧美一二三区在线| 亚洲自拍偷拍图区| 国产黄色精品网站| 91.xcao| 亚洲在线视频一区| 暴力调教一区二区三区| 欧美不卡一区二区| 石原莉奈在线亚洲二区| 99视频热这里只有精品免费| 久久综合久久鬼色中文字| 夜夜精品浪潮av一区二区三区| 国产乱淫av一区二区三区| 777精品伊人久久久久大香线蕉| 午夜精品免费在线观看| jlzzjlzz欧美大全| 欧美不卡一区二区三区| 午夜精品aaa| 欧美日韩在线播放三区| 亚洲视频 欧洲视频| 国产成人精品免费一区二区| 制服丝袜亚洲播放| 亚洲国产一区二区a毛片| 99视频精品在线| 中文字幕日韩欧美一区二区三区| 国产精品资源在线| 精品少妇一区二区三区免费观看 | aaa欧美大片| 国产亚洲欧美一区在线观看| 免费人成精品欧美精品| 欧美日韩国产经典色站一区二区三区 | 亚洲视频一区在线观看| 成人免费不卡视频| 国产三级欧美三级日产三级99 | 日韩高清一级片| 欧美三片在线视频观看| 一区二区三区欧美日| 91啪亚洲精品| 一区二区三区四区不卡在线| 99精品视频在线免费观看| 国产精品美女久久久久久2018| 不卡一区在线观看| 国产精品美女久久久久久久久| 成人性视频免费网站| 中文字幕久久午夜不卡| 不卡的电影网站| 国产精品免费久久| 91在线高清观看| 亚洲久本草在线中文字幕| 色av成人天堂桃色av| 一区二区三区91| 欧美乱妇一区二区三区不卡视频| 日本中文字幕一区| 精品国产乱码久久久久久影片| 国产伦精一区二区三区| 日本一区二区视频在线| 99综合电影在线视频| 亚洲高清在线视频| 久久久久久久综合| 成人免费毛片片v| 亚洲精品日日夜夜| 日韩视频中午一区| 国产精品一品二品| 亚洲人成精品久久久久久| 欧美日韩视频在线一区二区| 日本vs亚洲vs韩国一区三区二区| 久久久综合视频| 在线视频中文字幕一区二区| 日韩国产成人精品| 国产精品午夜在线| 欧美三级欧美一级|