1
0
forked from me/IronOS
Files
IronOS/source/Core/BSP/Pinecilv2/ble_handlers.h
Thomas White 8e7e58018a expand bulk data to match individual value data (#1555)
* track and return Operating mode with BLE

* move global variable to fix build on other platforms

* formatting

* expand bulk data to match individual value data

* formatting

* fix accidental single line if

---------

Co-authored-by: Ben V. Brown <5425387+Ralim@users.noreply.github.com>
2023-02-05 00:04:51 +11:00

22 lines
739 B
C

#ifndef BLE_HANDLERS_H_
#define BLE_HANDLERS_H_
#include "conn_internal.h"
#include "types.h"
#ifdef __cplusplus
extern "C" {
#endif
int ble_char_read_status_callback(struct bt_conn *conn, const struct bt_gatt_attr *attr, void *buf, u16_t len, u16_t offset);
int ble_char_read_setting_value_callback(struct bt_conn *conn, const struct bt_gatt_attr *attr, void *buf, u16_t len, u16_t offset);
int ble_char_read_bulk_value_callback(struct bt_conn *conn, const struct bt_gatt_attr *attr, void *buf, u16_t len, u16_t offset);
int ble_char_write_setting_value_callback(struct bt_conn *conn, const struct bt_gatt_attr *attr, const void *buf, u16_t len, u16_t offset, u8_t flags);
uint32_t getPowerSrc();
#ifdef __cplusplus
};
#endif
#endif