First version

Dependencies:   mbed EthernetInterface mbed-rto

Committer:
albireo987
Date:
Sun Apr 15 09:59:55 2018 +0000
Revision:
6:36158325f7b0
Child:
8:a987e04734dd
leds driver not finetuned;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
albireo987 6:36158325f7b0 1 #ifndef LEDDRIVER_H
albireo987 6:36158325f7b0 2 #define LEDDRIVER_H
albireo987 6:36158325f7b0 3
albireo987 6:36158325f7b0 4 #include "rtos.h"
albireo987 6:36158325f7b0 5 #include "copy.h"
albireo987 6:36158325f7b0 6 #include "mbed.h"
albireo987 6:36158325f7b0 7
albireo987 6:36158325f7b0 8 class LEDDriver
albireo987 6:36158325f7b0 9 {
albireo987 6:36158325f7b0 10 private:
albireo987 6:36158325f7b0 11 int** messageList;
albireo987 6:36158325f7b0 12 int* start;
albireo987 6:36158325f7b0 13 int* stop;
albireo987 6:36158325f7b0 14 int* directions;
albireo987 6:36158325f7b0 15 Mutex* lock;
albireo987 6:36158325f7b0 16 Copy copy;
albireo987 6:36158325f7b0 17 DigitalOut* leds;
albireo987 6:36158325f7b0 18
albireo987 6:36158325f7b0 19 int getDirection(int id);
albireo987 6:36158325f7b0 20 void encode(int direction,int led);
albireo987 6:36158325f7b0 21 void encodeAll(int numberOfLeds);
albireo987 6:36158325f7b0 22
albireo987 6:36158325f7b0 23 public:
albireo987 6:36158325f7b0 24
albireo987 6:36158325f7b0 25 void drive(int numberOfLeds);
albireo987 6:36158325f7b0 26 LEDDriver(/*Mutex* lock,*/ int sharedDirections[], int sizeOfSharedDirections);
albireo987 6:36158325f7b0 27 void run(int numberOfLeds);
albireo987 6:36158325f7b0 28
albireo987 6:36158325f7b0 29 };
albireo987 6:36158325f7b0 30
albireo987 6:36158325f7b0 31 #endif