| 数据搜索系统,热门电子元器件搜索 |
|
AN1105 数据表(PDF) 23 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1105 数据表(HTML) 23 Page - STMicroelectronics |
|
23 / 100 page ![]() 23/100 ST7 pCAN PERIPHERAL DRIVER CAN_Switch_Error CAN_Sleep (WakeUp_Cause): CAN_Switch_Error CAN_Switch_On(Init_Data_Ptr,CAN_Bool): CAN_Transmit_Error CAN_Transmit_Request(CAN_Buffer*): Description Puts the CAN node into Standby state. This function aborts any pending transmissions and does not wait for the reception buffers to be read. Then, it resets the driver in the same state as after power-on ini- tialization. If BUS_WAKEUP is selected, the next dominant bit detected on the bus will restart the cell. If SOFT_WAKEUP is selected, the cell will not take the bus state into ac- count. It can only be woken up by the CAN_Switch_On function. Possible return value: CAN_SLEEP_SUCCESS or CAN_FATAL_ERROR (if the RUN bit fails to reset after a time out or if the CAN_Clean function fails). There is a time out mechanism implemented in this function (about 30ms), waiting for the RUN bit to be actually reset. So if your application uses the watchdog REFRESH IT BEFORE calling the function Comments Calls CAN_Clean (See Section 3.2.2 "Internal Routines".) Input Chip Wake-up function: BUS_WAKEUP or SOFT_WAKEUP Output Error status Description Puts the CAN node into Standby state. Returns CAN_SLEEP_ERROR if a transmission request is pending, or if a hardware reception buffer is still unsaved. Possible return values: CAN_SLEEP_ERROR if there are jobs pending in the hardware registers, CAN_FATAL_ERROR if the RUN bit fails to reset after a time out, or CAN_SLEEP_SUCCESS Comments This function will not reset the CAN node. Input Pointer on an Init_Data structure (See Section 2.1.5.1 "Data-type Variables"), Boolean (CTRUE, CFALSE) Output Error status Description Puts the CAN node into Active state The Boolean is used to transmit a dominant pulse (CTRUE) or not (CFALSE) upon wake-up. The bit timing and the mask/filter parameters can be reinitialized in this function. In most cases, the cell will be initialized the same way as in the Power-on sequence. So, you can re-use the first_init_data structure is declared in can.h. Possible return values: SWITCH_ON_SUCCES and SWITCH_ON_FAILURE. Comments Calls CAN_Init (See Section 3.2.2 "Internal Routines"). Input Pointer to the CAN message to be sent 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 |