SG RFID nRF51822 fork

Fork of nRF51822 by Nordic Semiconductor

Embed: (wiki syntax)

« Back to documentation index

ble_hids.h File Reference

ble_hids.h File Reference

Go to the source code of this file.

Data Structures

struct  ble_hids_char_id_t
 HID Service characteristic id. More...
struct  ble_hids_evt_t
 HID Service event. More...
struct  ble_hids_hid_information_t
 HID Information characteristic value. More...
struct  ble_hids_inp_rep_init_t
 HID Service Input Report characteristic init structure. More...
struct  ble_hids_outp_rep_init_t
 HID Service Output Report characteristic init structure. More...
struct  ble_hids_feature_rep_init_t
 HID Service Feature Report characteristic init structure. More...
struct  ble_hids_rep_map_init_t
 HID Service Report Map characteristic init structure. More...
struct  ble_hids_rep_char_t
 HID Report characteristic structure. More...
struct  ble_hids_init_t
 HID Service init structure. More...
struct  ble_hids_s
 HID Service structure. More...

Typedefs

typedef struct ble_hids_s ble_hids_t
 HID Service structure.
typedef void(* ble_hids_evt_handler_t )(ble_hids_t *p_hids, ble_hids_evt_t *p_evt)
 HID Service event handler type.

Enumerations

enum  ble_hids_evt_type_t {
  BLE_HIDS_EVT_HOST_SUSP, BLE_HIDS_EVT_HOST_EXIT_SUSP, BLE_HIDS_EVT_NOTIF_ENABLED, BLE_HIDS_EVT_NOTIF_DISABLED,
  BLE_HIDS_EVT_REP_CHAR_WRITE, BLE_HIDS_EVT_BOOT_MODE_ENTERED, BLE_HIDS_EVT_REPORT_MODE_ENTERED, BLE_HIDS_EVT_REPORT_READ
}
 

HID Service event type.

More...

Functions

uint32_t ble_hids_init (ble_hids_t *p_hids, const ble_hids_init_t *p_hids_init)
 Function for initializing the HID Service.
void ble_hids_on_ble_evt (ble_hids_t *p_hids, ble_evt_t *p_ble_evt)
 Function for handling the Application's BLE Stack events.
uint32_t ble_hids_inp_rep_send (ble_hids_t *p_hids, uint8_t rep_index, uint16_t len, uint8_t *p_data)
 Function for sending Input Report.
uint32_t ble_hids_boot_kb_inp_rep_send (ble_hids_t *p_hids, uint16_t len, uint8_t *p_data)
 Function for sending Boot Keyboard Input Report.
uint32_t ble_hids_boot_mouse_inp_rep_send (ble_hids_t *p_hids, uint8_t buttons, int8_t x_delta, int8_t y_delta, uint16_t optional_data_len, uint8_t *p_optional_data)
 Function for sending Boot Mouse Input Report.
uint32_t ble_hids_outp_rep_get (ble_hids_t *p_hids, uint8_t rep_index, uint16_t len, uint8_t offset, uint8_t *p_outp_rep)
 Function for getting the current value of Output Report from the stack.

Detailed Description

Definition in file ble_hids.h.