123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- #ifndef NRF_DFU_BLE_H__
- #define NRF_DFU_BLE_H__
- #include <stdint.h>
- #include "ble_gatts.h"
- #include "ble.h"
- #include "nrf_dfu_transport.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define BLE_DFU_SERVICE_UUID 0xFE59
- #define BLE_DFU_CTRL_PT_UUID 0x0001
- #define BLE_DFU_PKT_CHAR_UUID 0x0002
- typedef struct
- {
- uint16_t service_handle;
- uint8_t uuid_type;
- ble_gatts_char_handles_t dfu_pkt_handles;
- ble_gatts_char_handles_t dfu_ctrl_pt_handles;
- } ble_dfu_t;
- uint32_t ble_dfu_transport_init(nrf_dfu_observer_t observer);
- uint32_t ble_dfu_transport_close(nrf_dfu_transport_t const * p_exception);
- uint32_t ble_dfu_transport_disconnect(void);
- #ifdef __cplusplus
- }
- #endif
- #endif
|