rtos test

Dependencies:   mbed-rtos mbed

Fork of rtos-test by Ryuichiro Ohira

Committer:
machines94
Date:
Sat May 14 21:15:12 2016 +0000
Revision:
1:ae213d6a0adf
Electromobility 2016
;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
machines94 1:ae213d6a0adf 1 #ifndef BLDC_H
machines94 1:ae213d6a0adf 2 #define BLDC_H
machines94 1:ae213d6a0adf 3
machines94 1:ae213d6a0adf 4 #include "mbed.h"
machines94 1:ae213d6a0adf 5 #include "i2c_helper.h"
machines94 1:ae213d6a0adf 6
machines94 1:ae213d6a0adf 7 class bldc {
machines94 1:ae213d6a0adf 8 public:
machines94 1:ae213d6a0adf 9 bldc(I2C* i2c, int addr);
machines94 1:ae213d6a0adf 10 void bldc::duty(char dutyMSB, char dutyLSB);
machines94 1:ae213d6a0adf 11 ~bldc();
machines94 1:ae213d6a0adf 12 private:
machines94 1:ae213d6a0adf 13 void init_cmd();
machines94 1:ae213d6a0adf 14 i2c_helper* _i2c;
machines94 1:ae213d6a0adf 15 char cmd[10];
machines94 1:ae213d6a0adf 16 };
machines94 1:ae213d6a0adf 17
machines94 1:ae213d6a0adf 18 #endif