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.
CDC.h
- Committer:
- petter
- Date:
- 2016-01-04
- Revision:
- 2:10c60edc8573
- Parent:
- 0:6cf6e566c0da
- Child:
- 6:c454f88524d6
File content as of revision 2:10c60edc8573:
#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 update_elapsed_time(); void reset_elapsed_time(); void start_elapsed_time(); void stop_elapsed_time(); 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