Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
ami601.c
Go to the documentation of this file.
2
7
11
12void ami601_init(void)
13{
14
15 uint8_t i;
16 for (i = 0; i < AMI601_NB_CHAN; i++) {
17 ami601_values[i] = 0;
18 }
21 ami601_nb_err = 0;
23
24}
25
26void ami601_read(void)
27{
31 } else {
34 ami601_i2c_trans.len_w = 3;
35 ami601_i2c_trans.buf[0] = 0x55;
36 ami601_i2c_trans.buf[1] = 0xAA;
37 ami601_i2c_trans.buf[2] = 0x14;
39 }
40}
void ami601_init(void)
Definition ami601.c:12
struct i2c_transaction ami601_i2c_trans
Definition ami601.c:9
uint8_t ami601_foo2
Definition ami601.c:4
volatile uint8_t ami601_status
Definition ami601.c:8
void ami601_read(void)
Definition ami601.c:26
uint8_t ami601_foo1
Definition ami601.c:3
volatile uint32_t ami601_nb_err
Definition ami601.c:10
uint16_t ami601_values[AMI601_NB_CHAN]
Definition ami601.c:6
uint8_t ami601_foo3
Definition ami601.c:5
#define AMI601_IDLE
Definition ami601.h:19
#define AMI601_SLAVE_ADDR
Definition ami601.h:28
#define AMI601_SENDING_REQ
Definition ami601.h:20
#define AMI601_NB_CHAN
Definition ami601.h:13
static bool i2c_submit(struct i2c_periph *p, struct i2c_transaction *t)
Submit a I2C transaction.
Definition i2c.h:271
@ I2CTransSuccess
transaction successfully finished by I2C driver
Definition i2c.h:58
@ I2CTransTx
transmit only transaction
Definition i2c.h:48
I2C transaction structure.
Definition i2c.h:94
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.