Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
ami601.h File Reference
#include "std.h"
#include "mcu_periph/i2c.h"
+ Include dependency graph for ami601.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define AMI601_NB_CHAN   6
 
#define AMI601_IDLE   0
 
#define AMI601_SENDING_REQ   1
 
#define AMI601_WAITING_MEASURE   2
 
#define AMI601_READING_MEASURE   3
 
#define AMI601_DATA_AVAILABLE   4
 
#define AMI601_SLAVE_ADDR   0x60
 
#define AMI601_IT   TIR_MR1I
 
#define AMI601_ISR()   {}
 
#define AMI601Event(_handler)
 

Functions

void ami601_init (void)
 
void ami601_read (void)
 
void ami601_periodic (void)
 
void ami601_scale_measures (void)
 

Variables

uint16_t ami601_values [AMI601_NB_CHAN]
 
uint8_t ami601_foo1
 
uint8_t ami601_foo2
 
uint8_t ami601_foo3
 
volatile uint8_t ami601_status
 
struct i2c_transaction ami601_i2c_trans
 
volatile uint32_t ami601_nb_err
 

Macro Definition Documentation

◆ AMI601_DATA_AVAILABLE

#define AMI601_DATA_AVAILABLE   4

Definition at line 23 of file ami601.h.

◆ AMI601_IDLE

#define AMI601_IDLE   0

Definition at line 19 of file ami601.h.

◆ AMI601_ISR

#define AMI601_ISR ( )    {}

Definition at line 30 of file ami601.h.

◆ AMI601_IT

#define AMI601_IT   TIR_MR1I

Definition at line 29 of file ami601.h.

◆ AMI601_NB_CHAN

#define AMI601_NB_CHAN   6

Definition at line 13 of file ami601.h.

◆ AMI601_READING_MEASURE

#define AMI601_READING_MEASURE   3

Definition at line 22 of file ami601.h.

◆ AMI601_SENDING_REQ

#define AMI601_SENDING_REQ   1

Definition at line 20 of file ami601.h.

◆ AMI601_SLAVE_ADDR

#define AMI601_SLAVE_ADDR   0x60

Definition at line 28 of file ami601.h.

◆ AMI601_WAITING_MEASURE

#define AMI601_WAITING_MEASURE   2

Definition at line 21 of file ami601.h.

◆ AMI601Event

#define AMI601Event (   _handler)

Definition at line 38 of file ami601.h.

Function Documentation

◆ ami601_init()

◆ ami601_periodic()

void ami601_periodic ( void  )

◆ ami601_read()

void ami601_read ( void  )

◆ ami601_scale_measures()

void ami601_scale_measures ( void  )

Variable Documentation

◆ ami601_foo1

uint8_t ami601_foo1
extern

Definition at line 3 of file ami601.c.

◆ ami601_foo2

uint8_t ami601_foo2
extern

Definition at line 4 of file ami601.c.

◆ ami601_foo3

uint8_t ami601_foo3
extern

Definition at line 5 of file ami601.c.

◆ ami601_i2c_trans

struct i2c_transaction ami601_i2c_trans
extern

Definition at line 8 of file ami601.c.

Referenced by ami601_init(), and ami601_read().

◆ ami601_nb_err

volatile uint32_t ami601_nb_err
extern

Definition at line 10 of file ami601.c.

Referenced by ami601_init(), and ami601_read().

◆ ami601_status

volatile uint8_t ami601_status
extern

Definition at line 8 of file ami601.c.

Referenced by ami601_init(), and ami601_read().

◆ ami601_values

uint16_t ami601_values[AMI601_NB_CHAN]
extern

Definition at line 6 of file ami601.c.

Referenced by ami601_init().