no-OS
Loading...
Searching...
No Matches
admt4000_dev Struct Reference

ADMT4000 device descriptor. More...

#include <admt4000.h>

Collaboration diagram for admt4000_dev:
[legend]

Public Attributes

struct no_os_spi_descspi_desc
 
struct admt4000_init_param default_config
 
struct no_os_gpio_descgpio_reset_desc
 
struct no_os_gpio_descgpio_cnv_desc
 
struct no_os_gpio_descgpio_acalc_desc
 
struct no_os_gpio_descgpio_fault_desc
 
uint8_t current_page
 
bool page_cache_valid
 
struct admt4000_gpio gpios [6]
 
bool is_one_shot
 

Detailed Description

ADMT4000 device descriptor.

Member Data Documentation

◆ current_page

uint8_t admt4000_dev::current_page

Current register page (0=measurement, 2=configuration). Cached to minimize SPI transactions when accessing same page

◆ default_config

struct admt4000_init_param admt4000_dev::default_config

Copy of initialization parameters for reference and reconfiguration

◆ gpio_acalc_desc

struct no_os_gpio_desc* admt4000_dev::gpio_acalc_desc

ACALC GPIO descriptor (monitors angle calculation status)

◆ gpio_cnv_desc

struct no_os_gpio_desc* admt4000_dev::gpio_cnv_desc

CNV GPIO descriptor (triggers angle/position conversion)

◆ gpio_fault_desc

struct no_os_gpio_desc* admt4000_dev::gpio_fault_desc

FAULT GPIO descriptor (monitors device fault status)

◆ gpio_reset_desc

struct no_os_gpio_desc* admt4000_dev::gpio_reset_desc

Reset GPIO descriptor (active low hardware reset control)

◆ gpios

struct admt4000_gpio admt4000_dev::gpios[6]

GPIO state and configuration for all 6 device GPIOs. Tracks logic level, direction, and alternate function mode

◆ is_one_shot

bool admt4000_dev::is_one_shot

Conversion mode tracker. True for one-shot mode, false for continuous

◆ page_cache_valid

bool admt4000_dev::page_cache_valid

Page cache validity flag. True when current_page reflects actual hardware state. Invalidated after reset or page-affecting operations

◆ spi_desc

struct no_os_spi_desc* admt4000_dev::spi_desc

SPI communication descriptor for register access


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