Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_COMP.h File Reference
#include <cstdint>
#include "ble/cs_Nordic.h"
Include dependency graph for cs_COMP.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  COMP
 Class that enables you to get events when a the voltage on an AIN pin goes over or below a given threshold. More...
 

Typedefs

typedef void(* comp_event_cb_t) (CompEvent_t event)
 Define comp_event_cb_t to be a void function with a CompEvent_t parameter as single argument. More...
 

Enumerations

enum  CompEvent_t { COMP_EVENT_UP , COMP_EVENT_DOWN , COMP_EVENT_CROSS , COMP_EVENT_BOTH }
 Compare events, also used for configuration. More...
 

Typedef Documentation

◆ comp_event_cb_t

typedef void(* comp_event_cb_t) (CompEvent_t event)

Define comp_event_cb_t to be a void function with a CompEvent_t parameter as single argument.

This function can be used as callback after an event occurred.

Enumeration Type Documentation

◆ CompEvent_t

Compare events, also used for configuration.

Enumerator
COMP_EVENT_UP 
COMP_EVENT_DOWN 
COMP_EVENT_CROSS 
COMP_EVENT_BOTH