Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
encoder_amt22.c File Reference
+ Include dependency graph for encoder_amt22.c:

Go to the source code of this file.

Functions

void encoder_amt22_init (void)
 
void encoder_amt22_periodic (void)
 

Variables

static amt22_t amt22
 
static amt22_config_t amt22_conf
 

Detailed Description

Author
Flo&Fab name..nosp@m.surn.nosp@m.ame@e.nosp@m.nac..nosp@m.fr Driver for AMT22 encoder from CUI devices.

Definition in file encoder_amt22.c.

Function Documentation

◆ encoder_amt22_init()

void encoder_amt22_init ( void  )

Definition at line 37 of file encoder_amt22.c.

References amt22, amt22_conf, and amt22_init().

+ Here is the call graph for this function:

◆ encoder_amt22_periodic()

void encoder_amt22_periodic ( void  )

Definition at line 42 of file encoder_amt22.c.

References amt22, amt22_get_position(), amt22_get_turns(), amt22_periodic(), DefaultChannel, DefaultDevice, f, and foo.

+ Here is the call graph for this function:

Variable Documentation

◆ amt22

amt22_t amt22
static

Definition at line 30 of file encoder_amt22.c.

Referenced by encoder_amt22_init(), and encoder_amt22_periodic().

◆ amt22_conf

amt22_config_t amt22_conf
static
Initial value:
= {
.slave_idx = AMT22_SPI_SLAVE_IDX,
.type = AMT22_12_SINGLE,
}
@ AMT22_12_SINGLE
12-bits, single-turn
Definition amt22.h:7
uint16_t foo
Definition main_demo5.c:58

Definition at line 31 of file encoder_amt22.c.

Referenced by encoder_amt22_init().