Mock of the board bluetooth.
More...
|
| namespace | lampda |
| | Program scope.
|
| |
| namespace | lampda::hal |
| | Hardware Abstraction Layer, handle the platform specific interactions. Can be changed to support different platforms.
|
| |
| namespace | lampda::hal::bluetooth |
| | Handle the platform specific bluetooth operations.
|
| |
|
|
bool | lampda::hal::bluetooth::is_activated () |
| | Return true if the bluetooth is activated.
|
| |
|
bool | lampda::hal::bluetooth::is_advertising () |
| | Return true is the bluetooth is visible by other devices.
|
| |
|
bool | lampda::hal::bluetooth::is_connected () |
| | Return true if a bluetooth user is connected.
|
| |
|
void | lampda::hal::bluetooth::start_advertising () |
| |
|
void | lampda::hal::bluetooth::stop_bluetooth_advertising () |
| |
|
void | lampda::hal::bluetooth::write_battery_level (const uint8_t batteryLevel) |
| |
|
void | lampda::hal::bluetooth::notify_battery_level (const uint8_t batteryLevel) |
| |
|
bool | lampda::hal::bluetooth::was_used () |
| | Return tue if the bluetooth was used during lifetime.
|
| |
|
void | lampda::hal::bluetooth::shutdown () |
| |
|
bool | lampda::hal::bluetooth::serial::is_activated () |
| | Return true if the serial port is active.
|
| |
|
bool | lampda::hal::bluetooth::serial::is_available () |
| | Return true if a char is available to read.
|
| |
|
char | lampda::hal::bluetooth::serial::read () |
| | Read a character (blocking)
|
| |
|
size_t | lampda::hal::bluetooth::serial::write (const char *const buffer, size_t bufferSize) |
| | Write a buffer to bluetooth serial.
|
| |
|
uint16_t | lampda::hal::bluetooth::serial::mtu_size () |
| | Return the usable MTU size.
|
| |
Mock of the board bluetooth.