4-10-2015 BAE_RTOS_TEST ACS_DATA_ACQ and I2C sending 25 bytes to CDMS

Dependencies:   mbed-rtos mbed

Fork of BAE_RTOS_test_1 by GOPA KUMAR K C

ACS.h

Committer:
gkumar
Date:
2015-10-04
Revision:
1:b8c71afbe6e5

File content as of revision 1:b8c71afbe6e5:

#include "mbed.h"
#include "math.h"
#include "pni.h" 

//...........................................
#define TIME_PERIOD  0.02
#define TR_CONSTANT  0.3

void FCTN_ACS_GENPWM_MAIN(float*);
void FCTN_ACS_CNTRLALGO(float*,float*,float*);
void inverse(float mat[3][3],float inv[3][3]);

void FCTN_ATS_SWITCH(bool);
void FCTN_ACS_INIT(); //initialization of registers happens
void FCTN_ATS_DATA_ACQ(float*,float*); // main function: checks errors, gets data, switches on/off the sensor
void FCTN_GET_DATA(float*,float*); //data is obtained
void FCTN_T_OUT(); //timeout function to stop infinite loop