mbed library sources. Supersedes mbed-src. Fixed broken STM32F1xx RTC on rtc_api.c
Dependents: Nucleo_F103RB_RTC_battery_bkup_pwr_off_okay
Fork of mbed-dev by
Diff: hal/can_helper.h
- Revision:
- 167:e84263d55307
- Parent:
- 149:156823d33999
--- a/hal/can_helper.h Thu Jun 08 15:02:37 2017 +0100 +++ b/hal/can_helper.h Wed Jun 21 17:46:44 2017 +0100 @@ -25,6 +25,12 @@ extern "C" { #endif +/** + * + * \enum CANFormat + * + * \brief Values that represent CAN Format +**/ enum CANFormat { CANStandard = 0, CANExtended = 1, @@ -32,18 +38,31 @@ }; typedef enum CANFormat CANFormat; +/** + * + * \enum CANType + * + * \brief Values that represent CAN Type +**/ enum CANType { CANData = 0, CANRemote = 1 }; typedef enum CANType CANType; +/** + * + * \struct CAN_Message + * + * \brief Holder for single CAN message. + * +**/ struct CAN_Message { unsigned int id; // 29 bit identifier unsigned char data[8]; // Data field unsigned char len; // Length of data field in bytes - CANFormat format; // 0 - STANDARD, 1- EXTENDED IDENTIFIER - CANType type; // 0 - DATA FRAME, 1 - REMOTE FRAME + CANFormat format; // Format ::CANFormat + CANType type; // Type ::CANType }; typedef struct CAN_Message CAN_Message;