void ak8963_event(struct Ak8963 *ak)
enum Ak8963Status status
main status
void ak8963_configure(struct Ak8963 *ak)
Ak8963Status
Normal status states.
struct i2c_transaction i2c_trans
i2c transaction used for communication with the ak8936
enum Ak8963ConfStatus init_status
init status
bool initialized
config done flag
volatile bool data_available
data ready flag
struct i2c_periph * i2c_p
peripheral used for communcation
void ak8963_init(struct Ak8963 *ak, struct i2c_periph *i2c_p, uint8_t addr)
Initialize AK8963 struct.
static void ak8963_periodic(struct Ak8963 *ak)
convenience function: read or start configuration if not already initialized
Ak8963ConfStatus
Config status states.
void ak8963_read(struct Ak8963 *ak)
Default Ak8963 structure.
I2C transaction structure.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
Paparazzi fixed point algebra.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.