/* Select the Sleep mode or not in Basic workmode.  */
u8 CAN_Sleep(CAN_TypeDef *can)
/* Select the Sleep mode or not in Basic workmode.  */
u8 CAN_Sleep(CAN_TypeDef *can)
{
    can->CMR |= CAN_SleepMode;
    return (u8)((can->CMR & 0x10) == CAN_SleepMode) ? CANSLEEPOK : CANSLEEPFAILED;
}