|
SemiDrive SSDK Appication Program Interface PTG3.0
|
#include <sdrv_acmp.h>
Data Fields | |
| paddr_t | base |
| int | irq |
| sdrv_acmp_mode_t | mode |
| sdrv_acmp_csel_cfg_t * | csel_cfg |
| uint8_t | csel_num |
| sdrv_acmp_index_cfg_t * | index_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 |
| paddr_t base |
Acmp base address
| sdrv_acmp_csel_cfg_t* csel_cfg |
Acmp compare select controller configuration
| uint8_t csel_num |
Acmp config csel number
| uint8_t cur_entry_pt |
The start idx number in a scanning sequence in IT mode
| sdrv_acmp_index_cfg_t* index_cfg |
Acmp index configurations
| uint8_t index_num |
Acmp config index number
| int irq |
Acmp irq number
| sdrv_acmp_mode_t mode |
Acmp mode
| bool qch_cmp_en |
Allow acmp analog competitor recieve q channel low power requset
| bool qch_dac_en |
Allow acmp analog dac recieve q channel low power requset
| uint8_t qend |
The tail idx number in a scanning sequence in IT mode
| uint8_t qstart |
The head idx number in a scanning sequence in IT mode
| uint8_t req_n_dly |
Acmp req_n delay number
| 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)
| 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)