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.
Dependencies: mbed X_NUCLEO_PLC01A1 ros_lib_melodic
can_controller.h@3:ea5cfd721b53, 2020-08-30 (annotated)
- Committer:
- yamadola
- Date:
- Sun Aug 30 06:39:43 2020 +0000
- Revision:
- 3:ea5cfd721b53
- Parent:
- 1:ef4b86795d79
This code includes all functions for Amabie.; However, I have never debugged it with the real body.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| yamadola | 0:43eb9ccc1583 | 1 | #ifndef CAN_CONTROLLER_H |
| yamadola | 0:43eb9ccc1583 | 2 | #define CAN_CONTROLLER_H |
| yamadola | 0:43eb9ccc1583 | 3 | |
| yamadola | 0:43eb9ccc1583 | 4 | #include "mbed.h" |
| yamadola | 0:43eb9ccc1583 | 5 | |
| yamadola | 0:43eb9ccc1583 | 6 | class CANController{ |
| yamadola | 0:43eb9ccc1583 | 7 | private: |
| yamadola | 3:ea5cfd721b53 | 8 | CAN _can1; |
| yamadola | 3:ea5cfd721b53 | 9 | CANMessage _rmsg; |
| yamadola | 0:43eb9ccc1583 | 10 | public: |
| yamadola | 0:43eb9ccc1583 | 11 | CANController(); |
| yamadola | 0:43eb9ccc1583 | 12 | int sendMessage( uint16_t ID, char *msgData ); |
| yamadola | 3:ea5cfd721b53 | 13 | unsigned char* recieveMessage( uint16_t ID ); |
| yamadola | 3:ea5cfd721b53 | 14 | |
| yamadola | 3:ea5cfd721b53 | 15 | unsigned char *_NoData; |
| yamadola | 0:43eb9ccc1583 | 16 | }; |
| yamadola | 0:43eb9ccc1583 | 17 | |
| yamadola | 0:43eb9ccc1583 | 18 | #endif |