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.
Diff: CDC.h
- Revision:
- 0:6cf6e566c0da
- Child:
- 2:10c60edc8573
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CDC.h Mon Jan 04 15:31:12 2016 +0000 @@ -0,0 +1,48 @@ + + +#ifndef CDC_H +#define CDC_H + +#include "mbed.h" + +typedef enum +{ + IBUS_NO_MESSAGE, + IBUS_OTHER_MESSAGE, + IBUS_DOORS_LOCKED, + IBUS_DOORS_UNLOCKED, + IBUS_CDC_ON, + IBUS_CDC_OFF, + IBUS_NEXT, + IBUS_VOLUME_UP, + IBUS_VOLUME_DOWN, + IBUS_SKIP_FW, + IBUS_SKIP_BW, + IBUS_SET, + IBUS_CLEAR, + + IBUS_COMMAND_LAST + +} IBUS_COMMAND; + +//---------------------------------------------------------------------------- +// CLASS +//---------------------------------------------------------------------------- + +class CDC +{ +public: + void init(); + IBUS_COMMAND get_cmd(); + IBUS_COMMAND get_ihu_cmd(); + IBUS_COMMAND get_steering_wheel_cmd(); + void display(char text[]); + void display_update(); + void set_time(char minutes, char seconds); + void send_can_frame(int message_id, int *msg); + void print_can_frame(CANMessage *msg); + void CAN_wrFilter(uint32_t ctrl, uint32_t id); + +}; + +#endif \ No newline at end of file