#ifndef ___TP_SERVICE_H___
#define ___TP_SERVICE_H___

#include <stdint.h>

typedef struct throughput_handle_s {
    uint16_t conn_handle;
    struct p2c_service {
        uint16_t                 service;
        ble_gatts_char_handles_t notify;
#ifdef NOTIFY_HAS_DESC_ENABLE
        uint16_t notify_desc;
#endif
        ble_gatts_char_handles_t indicate;
#ifdef INDICATE_HAS_DESC_ENABLE
        uint16_t indicate_desc;
#endif
    } p2c;
    struct c2p_service {
        uint16_t                 service;
        ble_gatts_char_handles_t r_w;
        ble_gatts_char_handles_t r_wno;
    } c2p;
} tp_handle_t;

void tp_service_init(tp_handle_t *p_handle);

void tp_handle_get(tp_handle_t **pp_handle);

#endif // ___TP_SERVICE_H___
