Paparazzi UAS v7.1_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, and f.

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:
= {
.p = &AMT22_SPI_DEV,
.slave_idx = AMT22_SPI_SLAVE_IDX,
.type = AMT22_12_SINGLE,
}
@ AMT22_12_SINGLE
12-bits, single-turn
Definition amt22.h:7

Definition at line 31 of file encoder_amt22.c.

Referenced by encoder_amt22_init().