SDK สำหรับ TESAIoT Dev Kit
คู่มืออ้างอิง API และ Tutorial (ModusToolbox)
Toggle main menu visibility
Loading...
Searching...
No Matches
ble_nus_lazy.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* File Name: ble_nus_lazy.h
3
*
4
* Description: Public interface for the deferred Bento Buddy BLE bring-up.
5
* See ble_nus_lazy.c for behavioural contract.
6
*
7
******************************************************************************/
8
9
#ifndef BLE_NUS_LAZY_H
10
#define BLE_NUS_LAZY_H
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
16
/* Bring up the AIROC BLE host stack + NUS advertising on demand.
17
* Returns: 0 = newly started, 1 = already running, -1 = init failed. */
18
int
bento_buddy_request_start
(
void
);
19
20
/* Tear down the stack if it is up. Idempotent. */
21
void
bento_buddy_request_stop
(
void
);
22
23
/* Spawn a one-shot FreeRTOS task that brings BLE up ~3 s after the
24
* scheduler starts. Intended for headless smoke tests where no human
25
* taps Start BLE on the LCD. Safe to call from main() before
26
* vTaskStartScheduler. */
27
void
bento_buddy_auto_start_install
(
void
);
28
29
#ifdef __cplusplus
30
}
31
#endif
32
33
#endif
/* BLE_NUS_LAZY_H */
bento_buddy_request_stop
void bento_buddy_request_stop(void)
หยุดแบบ soft — ยุติการกระจายสัญญาณและตัด link แต่คง AIROC stack ไว้ในหน่วยความจำ ไม่มีสัญญาณแจ้งข้อผิ...
bento_buddy_request_start
int bento_buddy_request_start(void)
นำ AIROC BLE host stack และการกระจายสัญญาณ (advertising) ของ NUS ขึ้นมาเมื่อมีการร้องขอ ใช้ได้เฉพาะใน...
bento_buddy_auto_start_install
void bento_buddy_auto_start_install(void)
task auto-start แบบครั้งเดียวของเดิม ไม่มีผู้เรียกที่ใดเลย — ถูกแทนที่ด้วยรูปแบบ chip-power แล้ว
dist
ble_nus
include
ble_nus_lazy.h
Generated by
1.18.0