123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef __BT_APP_CORE_H__
- #define __BT_APP_CORE_H__
- #include "esp_log.h"
- #include "time.h"
- #include <stdint.h>
- #include <stdbool.h>
- #include <stdio.h>
- #define BT_APP_CORE_TAG "BT_APP_CORE"
- #define BT_APP_SIG_WORK_DISPATCH (0x01)
- typedef void (* bt_app_cb_t) (uint16_t event, void *param);
- typedef struct {
- uint16_t sig;
- uint16_t event;
- bt_app_cb_t cb;
- void *param;
- } bt_app_msg_t;
- typedef void (* bt_app_copy_cb_t) (bt_app_msg_t *msg, void *p_dest, void *p_src);
- bool bt_app_work_dispatch(bt_app_cb_t p_cback, uint16_t event, void *p_params, int param_len, bt_app_copy_cb_t p_copy_cback);
- void bt_app_task_start_up(void);
- void bt_app_task_shut_down(void);
- #endif
|