InPlay API
|
BLE HOG Profile. More...
Data Structures | |
struct | ble_hogpbh_boot_report_t |
HOGP Boot Host HID boot report info. More... | |
struct | ble_hogpd_info_t |
HID Information structure. More... | |
struct | ble_hogpd_ext_ref_t |
External Report Reference. More... | |
struct | ble_hogpd_cfg_t |
Database Creation Service Instance Configuration structure. More... | |
struct | ble_hogpd_report_info_t |
HID Report Info. More... | |
struct | ble_evt_hogpd_proto_mode_req_ind_t |
Inform Device APP that Protocol Mode Characteristic Value has been written on Device. More... | |
struct | ble_hogprh_content_t |
Structure containing the characteristics handles, value handles and descriptors. More... | |
struct | ble_hogprh_report_t |
HID report info. More... | |
struct | ble_hogprh_report_ref_t |
HID report Reference. More... | |
struct | ble_hogprh_report_map_t |
HID report MAP info. More... | |
struct | ble_hogprh_report_map_ref_t |
HID report MAP reference. More... | |
struct | ble_evt_hogprh_report_ind_t |
Parameters of the HOGPRH_BOOT_REPORT_IND message. More... | |
Macros | |
#define | BLE_HOGPRH_NB_HIDS_INST_MAX (2) |
Maximal number of hids instances that can be handled. | |
#define | BLE_HOGPRH_NB_REPORT_INST_MAX (5) |
Maximal number of Report Char. that can be added in the DB for one HIDS - Up to 11. | |
#define | BLE_HOGPRH_REPORT_MAP_MAX_LEN (512) |
Maximal length of Report Map Char. Value. | |
#define | BLE_HOGPD_NB_HIDS_INST_MAX (2) |
#define | BLE_HOGPD_NB_REPORT_INST_MAX (5) |
Maximal number of Report Char. that can be added in the DB for one HIDS - Up to 11. | |
Functions | |
int | in_ble_hogpbh_add (void *hdl, ble_hogp_prf_t *p_prf, comp_cb callback) |
Add HOGPBH profile. More... | |
int | in_ble_hogpbh_enable (void *hdl, int conidx, int con_type, uint8_t hids_nb, ble_hogpbh_content_t cont[], comp_cb callback) |
Enable HOGPBH profile. More... | |
int | in_ble_hogpbh_read_info_req (void *hdl, int conidx, int hid_idx, int info, ble_hogpbh_read_info_rsp_t *p_rsp, comp_cb callback) |
Read peer info. More... | |
int | in_ble_hogpbh_write_req (void *hdl, int conidx, int hid_idx, int info, int wr_cmd, ble_hogpbh_data_t *p_data, comp_cb callback) |
Write info to peer. More... | |
int | in_ble_hogpd_add (void *hdl, ble_hogp_prf_t *p_prf, comp_cb callback) |
Add HOGPD profile. More... | |
int | in_ble_hogpd_enable (void *hdl, int conidx, uint16_t ntf_cfg[], comp_cb callback) |
Enable HOGPBH profile. More... | |
int | in_ble_hogpd_report_upd_req (void *hdl, int conidx, ble_hogpd_report_info_t *p_info, comp_cb callback) |
Request sending of a report to the host - notification. More... | |
int | in_ble_hogpd_report_req_cfm (void *hdl, int conidx, int operation, int status, ble_hogpd_report_info_t *p_info) |
Confirmation for peer device for Reading or Updating a report value. More... | |
int | in_ble_hogpd_proto_mode_req_cfm (void *hdl, int conidx, int status, int hid_idx, int proto_mode) |
Confirm if the new protocol mode value. More... | |
int | in_ble_hogprh_add (void *hdl, ble_hogp_prf_t *p_prf, comp_cb callback) |
Add HOGPRH profile. More... | |
int | in_ble_hogprh_enable (void *hdl, int conidx, int con_type, int hids_nb, ble_hogprh_content_t cont[], comp_cb callback) |
Enable HOGPRH profile. More... | |
int | in_ble_hogprh_read_info_req (void *hdl, int conidx, ble_hogprh_read_info_req_t *p_req, ble_hogprh_read_info_rsp_t *p_rsp, comp_cb callback) |
Read peer info. More... | |
int | in_ble_hogprh_write_req (void *hdl, int conidx, ble_hogprh_write_req_t *p_req, comp_cb callback) |
Write info to peer. More... | |
BLE HOG Profile.
#define BLE_HOGPD_NB_HIDS_INST_MAX (2) |
HOGP Devicet role Maximal number of HIDS that can be added in the DB
enum ble_hog_evt_code |
Event code.
enum ble_hogp_ctnl_pt |
enum ble_hogp_info_bit |
enum ble_hogpbh_chars |
enum ble_hogpbh_descs |
enum ble_hogpbh_info |
HOGP Boot Host Peer HID service info that can be read/write.
enum ble_hogpd_cfg |
HOGPD config.
enum ble_hogpd_op |
enum ble_hogpd_report_cfg |
Type of reports.
enum ble_hogprh_chars |
enum ble_hogprh_descs |
enum ble_hogprh_info |
Peer HID service info that can be read/write.
int in_ble_hogpbh_add | ( | void * | hdl, |
ble_hogp_prf_t * | p_prf, | ||
comp_cb | callback | ||
) |
Add HOGPBH profile.
[in] | p_prf | Pointer to profile attributes, |
int in_ble_hogpbh_enable | ( | void * | hdl, |
int | conidx, | ||
int | con_type, | ||
uint8_t | hids_nb, | ||
ble_hogpbh_content_t | cont[], | ||
comp_cb | callback | ||
) |
Enable HOGPBH profile.
[in] | conidx | Connection index |
[in] | con_type | Connnetion type, |
[in] | hids_nb | Number of profile to enable |
[in,out] | cont | Contents of service
|
int in_ble_hogpbh_read_info_req | ( | void * | hdl, |
int | conidx, | ||
int | hid_idx, | ||
int | info, | ||
ble_hogpbh_read_info_rsp_t * | p_rsp, | ||
comp_cb | callback | ||
) |
Read peer info.
[in] | conidx | Connection index |
[in] | hid_idx | Instance index |
[in] | info | Information to read, |
[out] | p_rsp | Reponse from the peere |
int in_ble_hogpbh_write_req | ( | void * | hdl, |
int | conidx, | ||
int | hid_idx, | ||
int | info, | ||
int | wr_cmd, | ||
ble_hogpbh_data_t * | p_data, | ||
comp_cb | callback | ||
) |
Write info to peer.
[in] | conidx | Connection index |
[in] | hid_idx | Index |
[in] | info | Information to write, |
[in] | wr_cmd | Write command 1 - write request no response 0 - write request |
[in] | p_data | Write data |
int in_ble_hogpd_add | ( | void * | hdl, |
ble_hogp_prf_t * | p_prf, | ||
comp_cb | callback | ||
) |
Add HOGPD profile.
[in] | p_prf | Pointer to profile attributes, |
int in_ble_hogpd_enable | ( | void * | hdl, |
int | conidx, | ||
uint16_t | ntf_cfg[], | ||
comp_cb | callback | ||
) |
Enable HOGPBH profile.
[in] | conidx | Connection index |
[in] | ntf_cfg | Notifiction configuraton, |
int in_ble_hogpd_proto_mode_req_cfm | ( | void * | hdl, |
int | conidx, | ||
int | status, | ||
int | hid_idx, | ||
int | proto_mode | ||
) |
Confirm if the new protocol mode value.
[in] | conidx | Connection index |
[in] | status | Status of the request |
[in] | hid_idx | HIDS Instance |
[in] | proto_mode | New Protocol Mode Characteristic Value |
int in_ble_hogpd_report_req_cfm | ( | void * | hdl, |
int | conidx, | ||
int | operation, | ||
int | status, | ||
ble_hogpd_report_info_t * | p_info | ||
) |
Confirmation for peer device for Reading or Updating a report value.
[in] | conidx | Connection index |
[in] | operation | Operation requested, |
[in] | status | Status of the request |
[in] | p_info | Report Info |
int in_ble_hogpd_report_upd_req | ( | void * | hdl, |
int | conidx, | ||
ble_hogpd_report_info_t * | p_info, | ||
comp_cb | callback | ||
) |
Request sending of a report to the host - notification.
[in] | conidx | Connection index |
[in] | p_info | Report info |
int in_ble_hogprh_add | ( | void * | hdl, |
ble_hogp_prf_t * | p_prf, | ||
comp_cb | callback | ||
) |
Add HOGPRH profile.
[in] | p_prf | Pointer to profile attributes, |
int in_ble_hogprh_enable | ( | void * | hdl, |
int | conidx, | ||
int | con_type, | ||
int | hids_nb, | ||
ble_hogprh_content_t | cont[], | ||
comp_cb | callback | ||
) |
Enable HOGPRH profile.
[in] | conidx | Connection index |
[in] | con_type | Connnetion type, |
[in] | hids_nb | Number of instances |
[in,out] | cont | Contents of service
|
int in_ble_hogprh_read_info_req | ( | void * | hdl, |
int | conidx, | ||
ble_hogprh_read_info_req_t * | p_req, | ||
ble_hogprh_read_info_rsp_t * | p_rsp, | ||
comp_cb | callback | ||
) |
Read peer info.
[in] | conidx | Connection index |
[in] | p_req | Request information |
[out] | p_rsp | Reponse from the peere |
int in_ble_hogprh_write_req | ( | void * | hdl, |
int | conidx, | ||
ble_hogprh_write_req_t * | p_req, | ||
comp_cb | callback | ||
) |
Write info to peer.
[in] | conidx | Connection index |
[in] | p_req | Write information |