Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
itg3200.c File Reference
#include "peripherals/itg3200.extra.h"
#include "std.h"
+ Include dependency graph for itg3200.c:

Go to the source code of this file.

Macros

#define ITG_CONF_UNINIT   0
 
#define ITG_CONF_SD   1
 
#define ITG_CONF_DF   2
 
#define ITG_CONF_INT   3
 
#define ITG_CONF_PWR   4
 
#define ITG_CONF_DONE   5
 
#define Int16FromBuf(_buf, _idx)   ((int16_t)((_buf[_idx]<<8) | _buf[_idx+1]))
 

Functions

void itg3200_init (void)
 
static void itg3200_send_config (void)
 
void itg3200_configure (void)
 
void itg3200_read (void)
 
void itg3200_event (void)
 

Variables

volatile bool_t itg3200_data_available
 
struct Int32Rates itg3200_data
 
struct i2c_transaction itg3200_i2c_trans
 
bool_t itg3200_initialized
 
uint8_t itg3200_init_status
 

Macro Definition Documentation

#define Int16FromBuf (   _buf,
  _idx 
)    ((int16_t)((_buf[_idx]<<8) | _buf[_idx+1]))

Definition at line 114 of file itg3200.c.

Referenced by itg3200_event().

#define ITG_CONF_DF   2

Definition at line 31 of file itg3200.c.

Referenced by itg3200_send_config().

#define ITG_CONF_DONE   5

Definition at line 34 of file itg3200.c.

Referenced by itg3200_send_config().

#define ITG_CONF_INT   3

Definition at line 32 of file itg3200.c.

Referenced by itg3200_send_config().

#define ITG_CONF_PWR   4

Definition at line 33 of file itg3200.c.

Referenced by itg3200_send_config().

#define ITG_CONF_SD   1

Definition at line 30 of file itg3200.c.

Referenced by itg3200_send_config().

#define ITG_CONF_UNINIT   0

Definition at line 29 of file itg3200.c.

Referenced by itg3200_configure(), itg3200_event(), and itg3200_init().

Function Documentation

void itg3200_configure ( void  )

Definition at line 95 of file itg3200.c.

References I2CTransDone, I2CTransSuccess, itg3200_i2c_trans, itg3200_init_status, itg3200_send_config(), ITG_CONF_UNINIT, and i2c_transaction::status.

+ Here is the call graph for this function:

void itg3200_event ( void  )
void itg3200_init ( void  )

Definition at line 49 of file itg3200.c.

References FALSE, I2CTransDone, ITG3200_ADDR, itg3200_i2c_trans, itg3200_init_status, itg3200_initialized, ITG_CONF_UNINIT, i2c_transaction::slave_addr, and i2c_transaction::status.

Referenced by imu_impl_init().

+ Here is the caller graph for this function:

Variable Documentation

struct Int32Rates itg3200_data

Definition at line 40 of file itg3200.c.

Referenced by imu_navgo_event(), imu_umarim_event(), and itg3200_event().

volatile bool_t itg3200_data_available

Definition at line 38 of file itg3200.c.

Referenced by imu_navgo_event(), imu_umarim_event(), and itg3200_event().

struct i2c_transaction itg3200_i2c_trans
uint8_t itg3200_init_status

Definition at line 45 of file itg3200.c.

Referenced by itg3200_configure(), itg3200_event(), itg3200_init(), and itg3200_send_config().

bool_t itg3200_initialized

Definition at line 44 of file itg3200.c.

Referenced by itg3200_event(), itg3200_init(), itg3200_read(), and itg3200_send_config().