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 by
Diff: can_helper.h
- Revision:
- 27:7110ebee3484
- Parent:
- 11:1c1ebd0324fa
- Child:
- 44:24d45a770a51
--- a/can_helper.h Fri Feb 11 10:33:02 2011 +0000 +++ b/can_helper.h Tue Nov 29 14:59:27 2011 +0000 @@ -1,6 +1,5 @@ /* mbed Microcontroller Library - can_helper * Copyright (c) 2009 ARM Limited. All rights reserved. - * rmeyer */ #ifndef MBED_CAN_HELPER_H @@ -10,19 +9,18 @@ extern "C" { #endif -typedef enum CANFormat CANFormat; enum CANFormat { CANStandard = 0, CANExtended = 1 }; +typedef enum CANFormat CANFormat; -typedef enum CANType CANType; enum CANType { CANData = 0, CANRemote = 1 }; +typedef enum CANType CANType; -typedef struct CAN_Message CAN_Message; struct CAN_Message { unsigned int id; // 29 bit identifier unsigned char data[8]; // Data field @@ -30,6 +28,7 @@ CANFormat format; // 0 - STANDARD, 1- EXTENDED IDENTIFIER CANType type; // 0 - DATA FRAME, 1 - REMOTE FRAME }; +typedef struct CAN_Message CAN_Message; #ifdef __cplusplus };