| Electronic Components Datasheet Search |
|
AN1105 Datasheet(PDF) 83 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1105 Datasheet(HTML) 83 Page - STMicroelectronics |
|
83 / 100 page ![]() 83/100 ST7 pCAN PERIPHERAL DRIVER DESCRIPTION : Puts the CAN node into passive state. Returns an error if any transmission request is pendingor if a hardware reception buffer is still unsaved. Dedicated to bus wake-up (for power save). COMMENTS : Doesn’t call CAN_Clean. Possible return values : CAN_SLEEP_ERROR CAN_SLEEP_FATAL CAN_SLEEP_SUCCESS --------------------------------------------------------------------------*/ CAN_Switch_Error CAN_Sleep (WakeUp_Cause wucause) { if (status_counter==0) { CANPSR=PAGE_2; SetBit(CANBCSR,LOCK); if (!ValBit(CANBCSR,LOCK)) { return CAN_SLEEP_ERROR; } CANPSR=PAGE_3; SetBit(CANBCSR,LOCK); if (!ValBit(CANBCSR,LOCK)) { CANPSR=PAGE_2; Clr_LOCK_Bit(); return CAN_SLEEP_ERROR; } //Then the CAN cell can be shut down ClrBit(CANCSR,RUN); if (ValBit(CANCSR,RUN)) //Be careful there !!!!! { return CAN_SLEEP_FATAL; } CANPSR=PAGE_2; Clr_LOCK_Bit(); CANPSR=PAGE_3; Clr_LOCK_Bit(); if (wucause==BUS_WAKEUP) //We are then in the case when the uC has to be waken up by the bus |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |