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.extra.h File Reference
#include "std.h"
#include "math/pprz_algebra_int.h"
#include "mcu_periph/i2c.h"
#include "peripherals/itg3200.h"
+ Include dependency graph for itg3200.extra.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ITG3200_SMPLRT_DIV   0x00
 
#define ITG3200_FS_SEL   0x3
 
#define ITG3200_DLPF_CFG   0x3
 
#define ITG3200_INT_CFG   0x00
 
#define ITG3200_CLK_SEL   0x1
 
#define ITG3200_DLPF_FS   ((ITG3200_FS_SEL<<3)|(ITG3200_DLPF_CFG))
 
#define ITG3200_PWR_MGM   (ITG3200_CLK_SEL)
 
#define ITG3200_I2C_ADDR   ITG3200_ADDR
 
#define ITG3200_I2C_DEVICE   i2c1
 
#define Itg3200Periodic()
 
#define GyroEvent(_handler)
 

Functions

void itg3200_init (void)
 
void itg3200_configure (void)
 
void itg3200_read (void)
 
void itg3200_event (void)
 

Variables

bool_t itg3200_initialized
 
volatile bool_t itg3200_data_available
 
struct Int32Rates itg3200_data
 
struct i2c_transaction itg3200_trans
 

Macro Definition Documentation

#define GyroEvent (   _handler)
Value:
{ \
_handler(); \
} \
}
volatile bool_t itg3200_data_available
Definition: itg3200.c:38
void itg3200_event(void)
Definition: itg3200.c:116

Definition at line 90 of file itg3200.extra.h.

#define ITG3200_CLK_SEL   0x1

Definition at line 51 of file itg3200.extra.h.

#define ITG3200_DLPF_CFG   0x3

Definition at line 45 of file itg3200.extra.h.

#define ITG3200_DLPF_FS   ((ITG3200_FS_SEL<<3)|(ITG3200_DLPF_CFG))

Definition at line 54 of file itg3200.extra.h.

Referenced by itg3200_send_config().

#define ITG3200_FS_SEL   0x3

Definition at line 42 of file itg3200.extra.h.

#define ITG3200_I2C_ADDR   ITG3200_ADDR

Definition at line 59 of file itg3200.extra.h.

Referenced by itg3200_read(), and itg3200_send_config().

#define ITG3200_I2C_DEVICE   i2c1

Definition at line 64 of file itg3200.extra.h.

Referenced by itg3200_read(), and itg3200_send_config().

#define ITG3200_INT_CFG   0x00

Definition at line 48 of file itg3200.extra.h.

Referenced by itg3200_send_config().

#define ITG3200_PWR_MGM   (ITG3200_CLK_SEL)

Definition at line 55 of file itg3200.extra.h.

Referenced by itg3200_send_config().

#define ITG3200_SMPLRT_DIV   0x00

Definition at line 39 of file itg3200.extra.h.

Referenced by itg3200_send_config().

#define Itg3200Periodic ( )
Value:
{ \
}
void itg3200_read(void)
Definition: itg3200.c:106
void itg3200_configure(void)
Definition: itg3200.c:95
bool_t itg3200_initialized
Definition: itg3200.c:44

Definition at line 85 of file itg3200.extra.h.

Referenced by imu_periodic().

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().

bool_t itg3200_initialized

Definition at line 44 of file itg3200.c.

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

struct i2c_transaction itg3200_trans