eeprom adding
Fork of SEEED_CAN by
Diff: seeed_can_api.h
- Revision:
- 1:ad71faa09868
- Parent:
- 0:f5d099885d3d
- Child:
- 2:fd026fcfde94
diff -r f5d099885d3d -r ad71faa09868 seeed_can_api.h --- a/seeed_can_api.h Tue Nov 05 22:37:35 2013 +0000 +++ b/seeed_can_api.h Wed Nov 06 20:16:11 2013 +0000 @@ -33,7 +33,7 @@ // Process and manipulate the struct in an ordered way // Copy the struct to/from the MCP2512 as an array -/// Type definition to hold an MCP2515 CAN id structure +/// Type definition to hold an MCP2515 Timing Register set structure struct MCP_CANtiming { uint8_t phseg2 : 3; // PS2 length bits 2..0 (PHSEG2 + 1) Tq (minimum valid setting is 2 Tq) uint8_t reserved1 : 3; // Unused bits (read as '0') @@ -64,7 +64,7 @@ }; typedef struct MCP_CANid CANid; -/// Type definition to hold an MCP2515 CAN message structure +/// Type definition to hold an MCP2515 CAN id structure struct MCP_CANMsg { CANid id; uint8_t dlc : 4; // Bits 3..0: DLC - Data Length Counter @@ -129,7 +129,6 @@ void mcpMonitor(can_t *obj, const bool silent); // Select between monitor (silent = 1) and normal (silent = 0) modes uint8_t mcpMode(can_t *obj, const CANMode mode); // Change CAN operation to the specified mode - #ifdef __cplusplus }; #endif