Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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;
