CAN library containing a CAN controller object handling a FIFO, and CAN peripherals attached to it.
Diff: ControllerCAN.h
- Revision:
- 1:b69d05604535
- Parent:
- 0:ebe6f5e97160
- Child:
- 2:c81dff9c8a93
--- a/ControllerCAN.h Sat Feb 06 14:10:54 2016 +0000 +++ b/ControllerCAN.h Sat Feb 06 14:18:08 2016 +0000 @@ -2,12 +2,12 @@ #define CONTROLLERCAN_H #include "mbed.h" -#include "PeripherialCAN.h" +#include "PeripheralCAN.h" #include <vector> #define SIZE_FIFO 32 -class PeripherialCAN; +class PeripheralCAN; /** My CAN Controller class * Used to manage reading and writing procedures on a CAN Bus @@ -46,17 +46,17 @@ */ long writeRemote(long Id); - /** Attach a PeripherialCAN instance to a ControllerCAN + /** Attach a PeripheralCAN instance to a ControllerCAN * - * @param peripherial Pointer on a PeripherialCAN instance + * @param peripheral Pointer on a PeripheralCAN instance */ - void attach(PeripherialCAN* peripherial); + void attach(PeripheralCAN* peripheral); /** Read one message on the CAN FIFO * * @returns * -1 if no match is found between the message Id and all Ids of - * the PeripherialCAN instances attached to the ControllerCAN, + * the PeripheralCAN instances attached to the ControllerCAN, * 1 if a match is found */ char FIFOread(void); @@ -65,7 +65,7 @@ private : CAN can; - vector<PeripherialCAN*> peripherials; + vector<PeripheralCAN*> peripherals; unsigned char FIFO_ecriture; signed char FIFO_lecture; signed char FIFO_occupation;