Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
comp_nrf_comp_se_config Struct Reference

Single-ended mode configuration structure. More...

#include <zephyr/drivers/comparator/nrf_comp.h>

Data Fields

uint8_t psel
 Positive input selection defined by the NRF_COMP_AIN defines.
enum comp_nrf_comp_sp_mode sp_mode
 Speed mode selection.
enum comp_nrf_comp_isource isource
 Current source configuration.
uint8_t extrefsel
 External reference input selection defined by the NRF_COMP_AIN defines.
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

uint8_t comp_nrf_comp_se_config::extrefsel

External reference input selection defined by the NRF_COMP_AIN defines.

◆ isource

enum comp_nrf_comp_isource comp_nrf_comp_se_config::isource

Current source configuration.

◆ psel

uint8_t comp_nrf_comp_se_config::psel

Positive input selection defined by the NRF_COMP_AIN defines.

◆ 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: