| 数据搜索系统,热门电子元器件搜索 |
|
AN1105 数据表(PDF) 21 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1105 数据表(HTML) 21 Page - STMicroelectronics |
|
21 / 100 page ![]() 21/100 ST7 pCAN PERIPHERAL DRIVER {CAN_RUN,CAN_STANDBY,CAN_BUS_ACTIVE,CAN_BUS_PASSIVE,CAN_BUS_OFF}CAN_Status; Describes the different states of the cell. typedef enum {CFALSE=0,CTRUE=1}CAN_Bool; Custom Boolean type variable. typedef enum {BUS_WAKEUP,SOFT_WAKEUP}WakeUp_Cause; Possible parameters of the CAN_Sleep and CAN_Switch_Off functions. (See Section 2.1.5.2 "Functions".) typedef enum{CAN_SLEEP_ERROR,CAN_SLEEP_SUCCESS,CAN_SWITCH_ON_SUCCES,CAN_SWITCH_ON_FA ILURE}CAN_Switch_Error; Possible values returned by CAN_Sleep, CAN_Switch_Off and CAN_Switch_On functions (See Section 2.1.5.2 "Functions") typedef enum {CAN_INIT_SUCCESS,CAN_INIT_FAILURE}CAN_Init_Error; Possible values returned by CAN_First_Init function (See Section 2.1.5.2 "Functions") typedef enum {CAN_TRANSMIT_SUCCESS,CAN_TRANSMIT_FAILURE,CAN_TRANSMIT_NO_MSG,CAN_FIFO_FULL ,CAN_TRANSMIT_BUFFER_FULL,CAN_TRANSMISSION_ERROR_IT}CAN_Transmit_Error; Error codes used in Transmission functions.(See Section 2.1.5.2 "Functions") typedef enum {CAN_RECEIVE_SUCCESS,CAN_RECEIVE_REMOTE,CAN_ILLEGAL_IDENTIFIER,CAN_FILTERING _FAILURE,CAN_RECEIVE_FAILURE,CAN_BUFFER_IN_USE,CAN_NO_BUFFER,CAN_RCV_BUFFER_ NOT_READY}CAN_Receive_Error; Error codes used in Reception functions. (See Section 3.2.2 "Internal Routines"). Note: With some compilers, an option is used to define the size, in bytes, of enum-type variables. We rec- ommend selecting 1 byte, if possible, to save memory space. You can see in which case the different error codes are returned by the functions by studying the flow charts in Section 3.2.2 "Internal Routines" for internal functions and Section 3.1 "User interface functions" for user interface functions. You also find this information in the arrays of Section 2.1.5.2 "Functions" for user-interface routines and Section 3.2.2 "Internal Routines" for internal routines. 2.1.5.2 Functions CAN_Init_Error CAN_First_Init(void): Input -- Output Error status |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |