Zephyr API 3.6.99
Loading...
Searching...
No Matches
comp_nrf_comp_se_config Struct Reference

Single-ended mode configuration structure. More...

#include <nrf_comp.h>

Data Fields

enum comp_nrf_comp_psel psel
 Positive input selection.
 
enum comp_nrf_comp_sp_mode sp_mode
 Speed mode selection.
 
enum comp_nrf_comp_isource isource
 Current source configuration.
 
enum comp_nrf_comp_extrefsel extrefsel
 External reference selection.
 
enum comp_nrf_comp_refsel refsel
 Reference selection.
 
uint8_t th_down
 Hysteresis down threshold configuration.
 
uint8_t th_up
 Hysteresis up threshold configuration.
 

Detailed Description

Single-ended mode configuration structure.

Note
extrefsel is only used if refsel == COMP_NRF_COMP_REFSEL_AREF
Hysteresis down in volts = ((th_down + 1) / 64) * ref
Hysteresis up in volts = ((th_up + 1) / 64) * ref

Field Documentation

◆ extrefsel

enum comp_nrf_comp_extrefsel comp_nrf_comp_se_config::extrefsel

External reference selection.

◆ isource

enum comp_nrf_comp_isource comp_nrf_comp_se_config::isource

Current source configuration.

◆ psel

enum comp_nrf_comp_psel comp_nrf_comp_se_config::psel

Positive input selection.

◆ refsel

enum comp_nrf_comp_refsel comp_nrf_comp_se_config::refsel

Reference selection.

◆ sp_mode

enum comp_nrf_comp_sp_mode comp_nrf_comp_se_config::sp_mode

Speed mode selection.

◆ th_down

uint8_t comp_nrf_comp_se_config::th_down

Hysteresis down threshold configuration.

◆ th_up

uint8_t comp_nrf_comp_se_config::th_up

Hysteresis up threshold configuration.


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