Ersa Wearable Platform
Embedded smartwatch firmware and application framework
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ersa::services::DummyBle Class Reference
Inheritance diagram for ersa::services::DummyBle:
Inheritance graph
[legend]
Collaboration diagram for ersa::services::DummyBle:
Collaboration graph
[legend]

Public Member Functions

Result< void > init () override
 
const char * sourceId () const override
 
bool isAvailable () const override
 
hal::CompanionCapabilities capabilities () const override
 
void setCallCallback (hal::CompanionCallCallback, void *) override
 
void setMediaCallback (hal::CompanionMediaCallback, void *) override
 
void setNotificationCallback (hal::CompanionNotificationCallback, void *) override
 
void setTimeCallback (hal::CompanionTimeCallback, void *) override
 
void setAvailabilityCallback (hal::CompanionAvailabilityCallback, void *) override
 
bool acceptCall () override
 
bool rejectCall () override
 
bool hangupCall () override
 
bool dial (const char *) override
 
bool mediaCommand (hal::CompanionMediaAction) override
 
bool dismissNotification (uint32_t) override
 
void startAdvertising () override
 
void stopAdvertising () override
 
bool isConnected () const override
 
void setConnectionCallback (hal::BleConnectionCallback, void *) override
 
const char * getDeviceName () const override
 Return the local BLE device name.
 
const char * getDeviceAddress () const override
 
- Public Member Functions inherited from ersa::hal::IBluetooth
virtual ~IBluetooth ()=default
 
virtual bool suspendForMaintenance ()
 Release radio resources before memory-intensive maintenance.
 
virtual void resumeAfterMaintenance ()
 Resume advertising after maintenance completes.
 
virtual bool isAdvertising () const
 
virtual uint32_t nextWakeDelayMs (uint32_t nowMs) const
 
virtual void tick ()
 
- Public Member Functions inherited from ersa::hal::ICompanionSource
virtual ~ICompanionSource ()=default
 
virtual Result< void > initSource ()
 
virtual bool pauseForMaintenance ()
 
virtual void resumeFromMaintenance ()
 
virtual void tickSource ()
 
virtual void shutdownSource ()
 

Member Function Documentation

◆ acceptCall()

bool ersa::services::DummyBle::acceptCall ( )
inlineoverridevirtual

Queue a request to answer the current incoming call.

Implements ersa::hal::ICompanionSource.

◆ capabilities()

hal::CompanionCapabilities ersa::services::DummyBle::capabilities ( ) const
inlineoverridevirtual

Return a by-value snapshot so callers cannot retain mutable provider state.

Implements ersa::hal::ICompanionSource.

◆ dial()

bool ersa::services::DummyBle::dial ( const char *  number)
inlineoverridevirtual

Request dialing; the number format is provider-defined international text.

Implements ersa::hal::ICompanionSource.

◆ dismissNotification()

bool ersa::services::DummyBle::dismissNotification ( uint32_t  uid)
inlineoverridevirtual

Request remote removal of one notification when the peer supports it.

Implements ersa::hal::ICompanionSource.

◆ getDeviceAddress()

const char * ersa::services::DummyBle::getDeviceAddress ( ) const
inlineoverridevirtual

Return a stable formatted address string owned by the backend.

Implements ersa::hal::IBluetooth.

◆ getDeviceName()

const char * ersa::services::DummyBle::getDeviceName ( ) const
inlineoverridevirtual

Return the local BLE device name.

Implements ersa::hal::IBluetooth.

◆ hangupCall()

bool ersa::services::DummyBle::hangupCall ( )
inlineoverridevirtual

Queue a request to end the current active call.

Implements ersa::hal::ICompanionSource.

◆ init()

Result< void > ersa::services::DummyBle::init ( )
inlineoverridevirtual

Initialize the controller and service transport required by the product.

Implements ersa::hal::IBluetooth.

◆ isAvailable()

bool ersa::services::DummyBle::isAvailable ( ) const
inlineoverridevirtual

Report whether commands/data are currently usable from the peer.

Implements ersa::hal::ICompanionSource.

◆ isConnected()

bool ersa::services::DummyBle::isConnected ( ) const
inlineoverridevirtual

Return current link state; this does not imply companion services are ready.

Implements ersa::hal::IBluetooth.

◆ mediaCommand()

bool ersa::services::DummyBle::mediaCommand ( hal::CompanionMediaAction  action)
inlineoverridevirtual

Send a transport-neutral playback action after capability checks.

Implements ersa::hal::ICompanionSource.

◆ rejectCall()

bool ersa::services::DummyBle::rejectCall ( )
inlineoverridevirtual

Queue a request to reject the current incoming call.

Implements ersa::hal::ICompanionSource.

◆ setAvailabilityCallback()

void ersa::services::DummyBle::setAvailabilityCallback ( hal::CompanionAvailabilityCallback  ,
void *   
)
inlineoverridevirtual

Install or clear a sink for provider availability transitions.

Implements ersa::hal::ICompanionSource.

◆ setCallCallback()

void ersa::services::DummyBle::setCallCallback ( hal::CompanionCallCallback  ,
void *   
)
inlineoverridevirtual

Install or clear a sink for call-state transitions.

Implements ersa::hal::ICompanionSource.

◆ setConnectionCallback()

void ersa::services::DummyBle::setConnectionCallback ( hal::BleConnectionCallback  cb,
void *  userData 
)
inlineoverridevirtual

Register the single BLE link-state callback; null clears it. This reports transport only. Use ICompanionSource for provider/session readiness because encrypted link-up can precede service discovery.

Implements ersa::hal::IBluetooth.

◆ setMediaCallback()

void ersa::services::DummyBle::setMediaCallback ( hal::CompanionMediaCallback  ,
void *   
)
inlineoverridevirtual

Install or clear a sink for media metadata/playback updates.

Implements ersa::hal::ICompanionSource.

◆ setNotificationCallback()

void ersa::services::DummyBle::setNotificationCallback ( hal::CompanionNotificationCallback  ,
void *   
)
inlineoverridevirtual

Install or clear a sink for notification add/update/remove events.

Implements ersa::hal::ICompanionSource.

◆ setTimeCallback()

void ersa::services::DummyBle::setTimeCallback ( hal::CompanionTimeCallback  ,
void *   
)
inlineoverridevirtual

Install or clear a sink for a peer-provided current time.

Implements ersa::hal::ICompanionSource.

◆ sourceId()

const char * ersa::services::DummyBle::sourceId ( ) const
inlineoverridevirtual

◆ startAdvertising()

void ersa::services::DummyBle::startAdvertising ( )
inlineoverridevirtual

Begin or resume advertising; repeated calls should be safe.

Implements ersa::hal::IBluetooth.

◆ stopAdvertising()

void ersa::services::DummyBle::stopAdvertising ( )
inlineoverridevirtual

Stop advertising without necessarily tearing down an established link.

Implements ersa::hal::IBluetooth.


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