SemiDrive SSDK Appication Program Interface PTG3.0
Data Fields
sdrv_acmp_config

#include <sdrv_acmp.h>

Data Fields

paddr_t base
 
int irq
 
sdrv_acmp_mode_t mode
 
sdrv_acmp_csel_cfg_tcsel_cfg
 
uint8_t csel_num
 
sdrv_acmp_index_cfg_tindex_cfg
 
uint8_t index_num
 
uint8_t req_n_dly
 
bool qch_dac_en
 
bool qch_cmp_en
 
uint8_t qstart: 5
 
uint8_t qend: 5
 
uint8_t cur_entry_pt: 5
 
uint16_t timer_compare_val
 
uint16_t timer_terminal_val
 

Field Documentation

◆ base

paddr_t base

Acmp base address

◆ csel_cfg

Acmp compare select controller configuration

◆ csel_num

uint8_t csel_num

Acmp config csel number

◆ cur_entry_pt

uint8_t cur_entry_pt

The start idx number in a scanning sequence in IT mode

◆ index_cfg

Acmp index configurations

◆ index_num

uint8_t index_num

Acmp config index number

◆ irq

int irq

Acmp irq number

◆ mode

Acmp mode

◆ qch_cmp_en

bool qch_cmp_en

Allow acmp analog competitor recieve q channel low power requset

◆ qch_dac_en

bool qch_dac_en

Allow acmp analog dac recieve q channel low power requset

◆ qend

uint8_t qend

The tail idx number in a scanning sequence in IT mode

◆ qstart

uint8_t qstart

The head idx number in a scanning sequence in IT mode

◆ req_n_dly

uint8_t req_n_dly

Acmp req_n delay number

◆ timer_compare_val

uint16_t timer_compare_val

The total time for a whole comparison. Only used in IT (internal trigger) mode. The time must be more than (prop_delay + amux_setup)

◆ timer_terminal_val

uint16_t timer_terminal_val

Cycle comparison time, only used in IT (internal trigger) mode. Acmp output once per cycle, the value must be more than (timer_compare_val + prop_delay + amux_setup)


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