APM:Libraries
Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ChibiOS::SoftSigReaderInt Class Reference

#include <SoftSigReaderInt.h>

Collaboration diagram for ChibiOS::SoftSigReaderInt:
[legend]

Public Member Functions

 SoftSigReaderInt ()
 
 SoftSigReaderInt (const SoftSigReaderInt &other)=delete
 
SoftSigReaderIntoperator= (const SoftSigReaderInt &)=delete
 
void init (EICUDriver *icu_drv, eicuchannel_t chan)
 
bool read (uint32_t &widths0, uint32_t &widths1)
 

Static Public Member Functions

static SoftSigReaderIntget_instance (void)
 

Static Private Member Functions

static void _irq_handler (EICUDriver *eicup, eicuchannel_t channel)
 

Private Attributes

ObjectBuffer< uint16_t > sigbuf {MAX_SIGNAL_TRANSITIONS}
 
EICUConfig icucfg
 
EICUChannelConfig channel_config
 
EICUDriver * _icu_drv = nullptr
 
uint16_t last_value
 

Static Private Attributes

static SoftSigReaderInt_instance
 

Detailed Description

Definition at line 28 of file SoftSigReaderInt.h.

Constructor & Destructor Documentation

◆ SoftSigReaderInt() [1/2]

SoftSigReaderInt::SoftSigReaderInt ( )

Definition at line 33 of file SoftSigReaderInt.cpp.

◆ SoftSigReaderInt() [2/2]

ChibiOS::SoftSigReaderInt::SoftSigReaderInt ( const SoftSigReaderInt other)
delete

Member Function Documentation

◆ _irq_handler()

void SoftSigReaderInt::_irq_handler ( EICUDriver *  eicup,
eicuchannel_t  channel 
)
staticprivate

Definition at line 60 of file SoftSigReaderInt.cpp.

Referenced by init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_instance()

static SoftSigReaderInt* ChibiOS::SoftSigReaderInt::get_instance ( void  )
inlinestatic

Definition at line 36 of file SoftSigReaderInt.h.

Here is the call graph for this function:

◆ init()

void SoftSigReaderInt::init ( EICUDriver *  icu_drv,
eicuchannel_t  chan 
)

Definition at line 38 of file SoftSigReaderInt.cpp.

Referenced by get_instance().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

SoftSigReaderInt& ChibiOS::SoftSigReaderInt::operator= ( const SoftSigReaderInt )
delete

◆ read()

bool SoftSigReaderInt::read ( uint32_t &  widths0,
uint32_t &  widths1 
)

Definition at line 67 of file SoftSigReaderInt.cpp.

Referenced by get_instance().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _icu_drv

EICUDriver* ChibiOS::SoftSigReaderInt::_icu_drv = nullptr
private

Definition at line 52 of file SoftSigReaderInt.h.

Referenced by init().

◆ _instance

SoftSigReaderInt * SoftSigReaderInt::_instance
staticprivate

Definition at line 45 of file SoftSigReaderInt.h.

Referenced by _irq_handler(), get_instance(), and SoftSigReaderInt().

◆ channel_config

EICUChannelConfig ChibiOS::SoftSigReaderInt::channel_config
private

Definition at line 51 of file SoftSigReaderInt.h.

Referenced by init().

◆ icucfg

EICUConfig ChibiOS::SoftSigReaderInt::icucfg
private

Definition at line 50 of file SoftSigReaderInt.h.

Referenced by init().

◆ last_value

uint16_t ChibiOS::SoftSigReaderInt::last_value
private

Definition at line 53 of file SoftSigReaderInt.h.

Referenced by init(), and read().

◆ sigbuf

ObjectBuffer<uint16_t> ChibiOS::SoftSigReaderInt::sigbuf {MAX_SIGNAL_TRANSITIONS}
private

Definition at line 49 of file SoftSigReaderInt.h.

Referenced by _irq_handler(), and read().


The documentation for this class was generated from the following files: