u_ble.h 368 B

123456789101112131415161718
  1. #ifndef __U_BLE_H_
  2. #define __U_BLE_H_
  3. #include "u_global.h"
  4. #define BLE_DATA_MAX_LEN (20)
  5. typedef struct ble_data_in
  6. {
  7. uint8_t recv_len;
  8. uint8_t recv_data[BLE_DATA_MAX_LEN];
  9. }BleRecv_t;
  10. uint16_t crc_16(uint8_t *pbuff, uint32_t len);
  11. void ble_data_recv(uint8_t *ble_data, uint16_t recv_len);
  12. void u_ble_data_recv(uint8_t *ble_data, uint16_t recv_len);
  13. #endif