Dawn Framework 1.0
Universal data acquisition framework for embedded systems
Static Public Member Functions | List of all members
dawn::CDescSwitch Class Reference

Global descriptor switch request manager. More...

#include <descswitch.hxx>

Static Public Member Functions

static void clear ()
 Clear pending switch request.
 
static uint8_t getActiveSlot ()
 Get currently active descriptor slot.
 
static uint8_t getSwitchSlot ()
 Get pending switch target slot.
 
static bool isSwitchRequested ()
 Check if descriptor switch is pending.
 
static void requestSwitch (uint8_t slot)
 Request descriptor switch to a slot.
 
static void setActiveSlot (uint8_t slot)
 Set currently active descriptor slot.
 

Detailed Description

Global descriptor switch request manager.

Holds pending switch request and active slot state for runtime descriptor reload flow.

Definition at line 19 of file descswitch.hxx.

Member Function Documentation

◆ getActiveSlot()

uint8_t CDescSwitch::getActiveSlot ( )
static

Get currently active descriptor slot.

Returns
Active slot index.

Definition at line 40 of file descswitch.cxx.

Here is the caller graph for this function:

◆ getSwitchSlot()

uint8_t CDescSwitch::getSwitchSlot ( )
static

Get pending switch target slot.

Returns
Target slot index.

Definition at line 35 of file descswitch.cxx.

Here is the caller graph for this function:

◆ isSwitchRequested()

bool CDescSwitch::isSwitchRequested ( )
static

Check if descriptor switch is pending.

Returns
True when a switch was requested.

Definition at line 30 of file descswitch.cxx.

Here is the caller graph for this function:

◆ requestSwitch()

void CDescSwitch::requestSwitch ( uint8_t  slot)
static

Request descriptor switch to a slot.

Parameters
slotTarget descriptor slot index.

Definition at line 19 of file descswitch.cxx.

Here is the caller graph for this function:

◆ setActiveSlot()

void CDescSwitch::setActiveSlot ( uint8_t  slot)
static

Set currently active descriptor slot.

Parameters
slotActive slot index.

Definition at line 45 of file descswitch.cxx.

Here is the caller graph for this function:

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