85#define ERR_NOT_OPEN APP_RES_INVALID_NULL_POINTER
88#define Sys_enterCriticalSection() \
89 lib_system ? lib_system->enterCriticalSection() : ERR_NOT_OPEN
91#define Sys_exitCriticalSection() \
92 lib_system ? lib_system->exitCriticalSection() : ERR_NOT_OPEN
94#define Sys_disableDs(_dis) \
95 lib_system ? lib_system->disableDeepSleep(_dis) : ERR_NOT_OPEN
97#define Sys_enableAppIrq(_irqn, _isr) \
98 lib_system ? lib_system->enableAppIrq(false, _irqn, APP_LIB_SYSTEM_IRQ_PRIO_LO, _isr) : ERR_NOT_OPEN
100#define Sys_disableAppIrq(_irqn) \
101 lib_system ? lib_system->disableAppIrq(_irqn) : ERR_NOT_OPEN
103#define Sys_enableFastAppIrq(_irqn, _prio, _isr) \
104 lib_system ? lib_system->enableAppIrq(true, _irqn, _prio, _isr) : ERR_NOT_OPEN
106#define Sys_clearFastAppIrq(_irqn) \
107 lib_system ? lib_system->clearPendingFastAppIrq(_irqn) : ERR_NOT_OPEN
110#define Ble_beaconRx_setRxCb(_cb) \
111 lib_beacon_rx ? lib_beacon_rx->setBeaconReceivedCb(_cb) : ERR_NOT_OPEN
113#define Ble_beaconRx_startScanner(_chan) \
114 lib_beacon_rx ? lib_beacon_rx->startScanner(_chan) : ERR_NOT_OPEN
116#define Ble_beaconRx_stopScanner() \
117 lib_beacon_rx ? lib_beacon_rx->stopScanner() : ERR_NOT_OPEN
119#define Ble_beaconRx_isStarted() \
120 (lib_beacon_rx ? lib_beacon_rx->isScannerStarted() : ERR_NOT_OPEN)
const app_global_functions_t *global_func __attribute((weak))
bool API_Open(const app_global_functions_t *functions)
Open API (open all libraries)
List of global functions, passed to App_entrypoint()
List of library services.
List of library functions.
List of library functions.
List of library functions.
List of library functions.
List of library functions.
List of library functions.
List of library functions.
List of library functions.