correction lib

Fork of TLE5206_lib by nicolas Atienza

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers TLE5206_lib.h Source File

TLE5206_lib.h

00001 /**************************
00002  * TLE5206_lib.h: TLE5206 header file
00003  **************************/
00004 #ifndef DEF_TLE5206
00005 #define DEF_TLE5206
00006 
00007 #include "mbed.h"
00008 
00009 #define TLE5206_SAT_HIGH 0.99
00010 #define TLE5206_SAT_LOW 0.4
00011 #define TLE5206_NO_SAT_LOW 0.1
00012 
00013 
00014 class TLE5206{
00015     protected:
00016         PwmOut pwmIN1;
00017         PwmOut pwmIN2;
00018     public:
00019         TLE5206(PinName IN1,PinName IN2);
00020         void setup(int periode_us);
00021         void write(float duty_cycle);
00022 };
00023 
00024 #endif