amrangle2 2.1.0.0
amrangle2_cfg_t Struct Reference

AMR Angle 2 Click configuration object. More...

#include <amrangle2.h>

Data Fields

pin_name_t miso
 
pin_name_t mosi
 
pin_name_t sck
 
pin_name_t cs
 
pin_name_t an
 
pin_name_t cst
 
pin_name_t eoc
 
uint32_t spi_speed
 
spi_master_mode_t spi_mode
 
spi_master_chip_select_polarity_t cs_polarity
 
analog_in_resolution_t resolution
 
float vref
 

Detailed Description

AMR Angle 2 Click configuration object.

Configuration object definition of AMR Angle 2 Click driver.

Field Documentation

◆ an

pin_name_t an

Analog pin descriptor.

◆ cs

pin_name_t cs

Chip select pin descriptor for SPI driver.

◆ cs_polarity

spi_master_chip_select_polarity_t cs_polarity

Chip select pin polarity.

◆ cst

pin_name_t cst

Active-Low Conversion Start pin.

◆ eoc

pin_name_t eoc

End of Conversion pin. Data is valid after EOC pulls low.

◆ miso

pin_name_t miso

Master input - slave output pin descriptor for SPI driver.

◆ mosi

pin_name_t mosi

Master output - slave input pin descriptor for SPI driver.

◆ resolution

analog_in_resolution_t resolution

ADC resolution.

◆ sck

pin_name_t sck

Clock pin descriptor for SPI driver.

◆ spi_mode

spi_master_mode_t spi_mode

SPI master mode.

◆ spi_speed

uint32_t spi_speed

SPI serial speed.

◆ vref

float vref

ADC reference voltage.


The documentation for this struct was generated from the following file: