sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
Sensors.h File Reference

Go to the source code of this file.

Macros

#define ACC_1G   256
 
#define ACCZ_25deg   (int16_t)(ACC_1G * 0.90631)
 
#define ACC_VelScale   (9.80665f / 10000.0f / ACC_1G)
 

Functions

void ACC_getADC ()
 
void Gyro_getADC ()
 
uint8_t Mag_getADC ()
 
uint8_t Baro_update ()
 
void Sonar_update ()
 
void initSensors ()
 
void i2c_rep_start (uint8_t address)
 
void i2c_write (uint8_t data)
 
void i2c_stop (void)
 
void i2c_writeReg (uint8_t add, uint8_t reg, uint8_t val)
 
uint8_t i2c_readReg (uint8_t add, uint8_t reg)
 
uint8_t i2c_readAck ()
 
uint8_t i2c_readNak ()
 
void i2c_read_reg_to_buf (uint8_t add, uint8_t reg, uint8_t *buf, uint8_t size)
 

Macro Definition Documentation

#define ACC_1G   256
#define ACC_VelScale   (9.80665f / 10000.0f / ACC_1G)
#define ACCZ_25deg   (int16_t)(ACC_1G * 0.90631)

Function Documentation

void ACC_getADC ( )
uint8_t Baro_update ( )
void Gyro_getADC ( )
void i2c_read_reg_to_buf ( uint8_t  add,
uint8_t  reg,
uint8_t *  buf,
uint8_t  size 
)
uint8_t i2c_readAck ( )
uint8_t i2c_readNak ( )
uint8_t i2c_readReg ( uint8_t  add,
uint8_t  reg 
)
void i2c_rep_start ( uint8_t  address)
void i2c_stop ( void  )
void i2c_write ( uint8_t  data)
void i2c_writeReg ( uint8_t  add,
uint8_t  reg,
uint8_t  val 
)
void initSensors ( )
uint8_t Mag_getADC ( )
void Sonar_update ( )