CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
cdc::core::IService Class Referenceabstract

#include <IService.h>

Inheritance diagram for cdc::core::IService:
cdc::core::AttestationKeyService cdc::core::IModule cdc::core::TropicStorage cdc::core::UsbManager cdc::hal::IBluetoothController cdc::hal::IDisplay cdc::hal::IEspHardware cdc::hal::II2cBus cdc::hal::IKeypad cdc::hal::IPowerManager cdc::hal::IRtc cdc::hal::ISecureElement cdc::hal::ISleepController cdc::hal::IWifiController

Public Member Functions

virtual ~IService ()=default
virtual bool init ()=0
virtual bool start ()=0
virtual void stop ()=0
virtual ServiceState getState () const =0
virtual const char * getName () const =0

Detailed Description

Base interface for all services (HAL, Modules, etc.)

Lifecycle:

  1. Constructor (lightweight, no hardware access)
  2. init() - One-time initialization
  3. start() - Begin operation
  4. stop() - Pause/cleanup

Definition at line 27 of file IService.h.

Constructor & Destructor Documentation

◆ ~IService()

virtual cdc::core::IService::~IService ( )
virtualdefault

Member Function Documentation

◆ getName()

◆ getState()

◆ init()

◆ start()

◆ stop()


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