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

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

?? stm32f10x_can.h

?? STM32手持式示波器源代碼
?? H
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/**
  ******************************************************************************
  * @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)

/**

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线观看网站黄不卡| 在线成人免费观看| 午夜精品福利在线| 亚洲国产精品激情在线观看| 欧美日韩一区二区三区高清 | 捆绑变态av一区二区三区| 国产午夜精品一区二区| 欧美日韩三级一区| 精品久久久三级丝袜| 91美女视频网站| 国产盗摄精品一区二区三区在线| 爽好久久久欧美精品| 亚洲免费毛片网站| 欧美经典一区二区| 日韩欧美一级在线播放| 欧美亚洲愉拍一区二区| av一区二区不卡| 国产成人综合在线观看| 日韩不卡手机在线v区| 亚洲一区二区在线免费看| 国产精品午夜久久| 久久久久久久av麻豆果冻| 一区二区三区在线视频免费观看 | 亚洲图片一区二区| 中文字幕一区二区三区视频| 久久久欧美精品sm网站| 日韩欧美国产一区二区三区| 欧美伦理视频网站| 欧美色图在线观看| 色狠狠综合天天综合综合| 白白色 亚洲乱淫| 丁香另类激情小说| 国产成人99久久亚洲综合精品| 久久精品国产亚洲aⅴ| 首页综合国产亚洲丝袜| 99v久久综合狠狠综合久久| 国产成人av网站| 成人美女视频在线观看| 国产91对白在线观看九色| 国产成人精品亚洲午夜麻豆| 国产激情一区二区三区桃花岛亚洲| 韩国成人精品a∨在线观看| 麻豆国产91在线播放| 久久99国产精品久久99| 国内一区二区在线| 国产精品18久久久久久久久 | 精品免费国产二区三区| 亚洲午夜久久久久久久久电影网| 亚洲精品视频在线观看免费| 亚洲欧美另类图片小说| 亚洲精品国产a| 亚洲国产视频直播| 蜜臀av一区二区在线免费观看| 麻豆91免费看| 国产91精品精华液一区二区三区| 不卡av电影在线播放| 色噜噜狠狠一区二区三区果冻| 欧美日韩国产首页| 欧美电影免费观看完整版| 精品伦理精品一区| 亚洲国产成人在线| 亚洲综合一二区| 91香蕉视频在线| 欧美人牲a欧美精品| 欧美一级一区二区| 国产欧美日韩另类视频免费观看| 国产精品动漫网站| 午夜久久久久久久久久一区二区| 麻豆精品视频在线| 岛国精品一区二区| 欧美在线free| 久久久久国产免费免费| 亚洲老司机在线| 美女任你摸久久| 成人18精品视频| 91精品国产综合久久精品性色| 精品国产不卡一区二区三区| 国产高清在线观看免费不卡| 97精品超碰一区二区三区| 欧美亚洲国产一区二区三区va | 日韩视频永久免费| 亚洲国产成人一区二区三区| 亚洲第一福利一区| 粉嫩av一区二区三区| 欧美性感一类影片在线播放| 精品国产露脸精彩对白| 亚洲国产美女搞黄色| 国产大陆a不卡| 欧美精品丝袜中出| 1024成人网| 精品在线免费视频| 国产精品水嫩水嫩| 日韩成人精品在线| 91丝袜呻吟高潮美腿白嫩在线观看| 91精品国产综合久久久久久久久久| 国产精品色哟哟| 欧美bbbbb| 欧美主播一区二区三区美女| 2024国产精品| 五月婷婷综合激情| 91麻豆国产福利在线观看| 欧美xxxxxxxx| 亚洲第一久久影院| 91亚洲永久精品| 国产亚洲欧美一区在线观看| 日韩在线观看一区二区| 91一区二区三区在线播放| 国产三级一区二区三区| 色狠狠av一区二区三区| 日本一区二区三区四区 | 日日夜夜精品视频天天综合网| 成人国产精品免费网站| 日韩一区二区免费高清| 亚洲图片欧美一区| 色综合av在线| 综合av第一页| 精品国产欧美一区二区| 国产日韩在线不卡| 国产原创一区二区| 日韩一区二区高清| 欧美亚洲高清一区| 国产成人在线视频网站| 国产成人av电影| 国产精品第一页第二页第三页| 91麻豆精东视频| 日本美女一区二区三区| 精品国产123| 成人精品电影在线观看| 亚洲男人的天堂在线观看| 欧美亚洲国产怡红院影院| 美女网站视频久久| 中文av一区二区| 在线视频综合导航| 美日韩一区二区三区| 国产婷婷色一区二区三区在线| 99久久99久久免费精品蜜臀| 亚洲一区二区av在线| 亚洲精品在线观| 99久久精品费精品国产一区二区| jvid福利写真一区二区三区| 亚洲午夜免费电影| 久久久影视传媒| 在线免费视频一区二区| 久久精品999| 亚洲另类色综合网站| 日韩精品一区二区三区视频播放 | 丝瓜av网站精品一区二区| 精品久久五月天| 色8久久人人97超碰香蕉987| 青青草精品视频| 日韩理论在线观看| 欧美一级片在线| 99久久婷婷国产综合精品| 日韩成人免费看| 亚洲欧美一区二区三区久本道91| 亚洲成人午夜电影| 国产亚洲成av人在线观看导航| 日本高清不卡一区| 国产精品主播直播| 午夜精品成人在线视频| 国产精品毛片大码女人 | 日韩高清欧美激情| 国产精品网站在线播放| 91精品国产91久久综合桃花| 不卡高清视频专区| 精品一区二区av| 亚洲高清不卡在线| 久久精品欧美日韩| 欧美一级高清大全免费观看| 色老头久久综合| 国产盗摄一区二区三区| 日韩不卡一区二区| 亚洲一区二区三区四区中文字幕| 欧美国产亚洲另类动漫| 人人超碰91尤物精品国产| 综合分类小说区另类春色亚洲小说欧美| 日韩午夜激情电影| 欧美写真视频网站| 9l国产精品久久久久麻豆| 国产精品影视在线| 日韩高清不卡一区| 亚洲综合999| 最新不卡av在线| 国产欧美日本一区二区三区| 日韩视频不卡中文| 欧美日韩高清一区二区不卡| 色狠狠一区二区三区香蕉| 99久久精品国产网站| 国产69精品久久777的优势| 精品一区二区三区在线观看| 日韩精品一级中文字幕精品视频免费观看 | 欧美va亚洲va国产综合| 欧美日韩亚洲高清一区二区| 国产精品狼人久久影院观看方式| 亚洲精品一区二区三区在线观看| 5月丁香婷婷综合| 3atv在线一区二区三区| 欧美三级中文字幕在线观看| 日本乱码高清不卡字幕| 91在线观看一区二区|