CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
BleSerialModule.cpp File Reference

BLE serial module wiring NUS transport to console hooks and UI toggle. More...

#include "mod_ble_serial/BleSerialModule.h"
#include "mod_ble_serial/BleUartService.h"
#include "cdc_core/ModuleRegistry.h"
#include "cdc_hal/IBluetoothController.h"
#include "cdc_ui/I18n.h"
#include "cdc_ui/ViewStack.h"
#include "cdc_views/ToastView.h"
#include "cdc_log.h"
#include "nvs.h"
#include <cstring>

Go to the source code of this file.

Namespaces

namespace  cdc
namespace  cdc::mod_ble_serial

Functions

static void cdc::mod_ble_serial::bleOutputHook (const char *data, size_t len)
 Console hook bridge between shell I/O and BLE UART transport.
static bool cdc::mod_ble_serial::bleInputAvailableHook ()
 Console input-available hook using BLE UART RX queue.
static int cdc::mod_ble_serial::bleInputGetcharHook ()
 Console getchar hook reading one byte from BLE UART.
void mod_ble_serial_register ()
 Registers BLE serial module initializer.

Variables

static const char * TAG = "BLE_SERIAL"
constexpr ui::I18nEntry cdc::mod_ble_serial::kStrings []

Detailed Description

BLE serial module wiring NUS transport to console hooks and UI toggle.

Definition in file BleSerialModule.cpp.

Function Documentation

◆ mod_ble_serial_register()

void mod_ble_serial_register ( )

Registers BLE serial module initializer.

Definition at line 254 of file BleSerialModule.cpp.

References cdc::core::ModuleRegistry::instance(), and cdc::core::ModuleRegistry::registerInitializer().

Variable Documentation

◆ TAG

const char* TAG = "BLE_SERIAL"
static

Definition at line 17 of file BleSerialModule.cpp.