SmartSnippets DA1459x SDK
Data Structures | Enumerations | Functions

HID Service implementation. More...

#include "ble_gap.h"
#include "ble_service.h"

Go to the source code of this file.

Data Structures

struct  hids_callbacks_t
 
struct  hids_report_t
 
struct  hids_config_t
 

Enumerations

enum  hids_protocol_mode_t { HIDS_PROTOCOL_MODE_BOOT = 0x00, HIDS_PROTOCOL_MODE_REPORT = 0x01 }
 
enum  hids_cp_command_t { HIDS_CONTROL_POINT_SUSPEND = 0x00, HIDS_CONTROL_POINT_EXIT_SUSPEND = 0x01 }
 
enum  hids_report_type_t { HIDS_REPORT_TYPE_INPUT = 0x01, HIDS_REPORT_TYPE_OUTPUT = 0x02, HIDS_REPORT_TYPE_FEATURE = 0x03 }
 
enum  hids_boot_device_t { HIDS_BOOT_DEVICE_KEYBOARD = 0x01, HIDS_BOOT_DEVICE_MOUSE = 0x02, HIDS_BOOT_DEVICE_COMBO = HIDS_BOOT_DEVICE_KEYBOARD | HIDS_BOOT_DEVICE_MOUSE }
 

Functions

ble_service_thids_init (const ble_service_config_t *service_config, const hids_config_t *config, const hids_callbacks_t *callbacks)
 Register HID Service instance. More...
 
bool hids_attach_connection (ble_service_t *svc, uint16_t conn_idx)
 Attach connection to HID Service instance. More...
 
bool hids_set_boot_mouse_input_value (ble_service_t *svc, uint16_t length, const uint8_t *data) __attribute__((deprecated))
 Set Boot Mouse Input value. More...
 
bool hids_set_boot_mouse_input_report (ble_service_t *svc, uint16_t length, const uint8_t *data)
 Set Boot Mouse Input Report. More...
 
bool hids_notify_boot_mouse_input_report (ble_service_t *svc, uint16_t length, const uint8_t *data, ble_error_t *ble_err)
 Notify Boot Mouse Input Report. More...
 
bool hids_set_boot_keyboard_input_value (ble_service_t *svc, uint16_t length, const uint8_t *data) __attribute__((deprecated))
 Set Boot Keyboard Input value. More...
 
bool hids_set_boot_keyboard_input_report (ble_service_t *svc, uint16_t length, const uint8_t *data)
 Set Boot Keyboard Input Report. More...
 
bool hids_notify_boot_keyboard_input_report (ble_service_t *svc, uint16_t length, const uint8_t *data, ble_error_t *ble_err)
 Notify Boot Keyboard Input Report. More...
 
bool hids_set_report_value (ble_service_t *svc, hids_report_type_t type, uint8_t report_id, uint16_t length, const uint8_t *data) __attribute__((deprecated))
 Set Report value. More...
 
bool hids_set_report (ble_service_t *svc, hids_report_type_t type, uint8_t report_id, uint16_t length, const uint8_t *data)
 Set Report. More...
 
bool hids_notify_input_report (ble_service_t *svc, uint8_t report_id, uint16_t length, const uint8_t *data, ble_error_t *ble_err)
 Notify Input Report. More...
 

Detailed Description

HID Service implementation.

Copyright (C) 2015-2018 Renesas Electronics Corporation and/or its affiliates. All rights reserved. Confidential Information.

This software ("Software") is supplied by Renesas Electronics Corporation and/or its affiliates ("Renesas"). Renesas grants you a personal, non-exclusive, non-transferable, revocable, non-sub-licensable right and license to use the Software, solely if used in or together with Renesas products. You may make copies of this Software, provided this copyright notice and disclaimer ("Notice") is included in all such copies. Renesas reserves the right to change or discontinue the Software at any time without notice.

THE SOFTWARE IS PROVIDED "AS IS". RENESAS DISCLAIMS ALL WARRANTIES OF ANY KIND, WHETHER EXPRESS, IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. TO THE MAXIMUM EXTENT PERMITTED UNDER LAW, IN NO EVENT SHALL RENESAS BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE, EVEN IF RENESAS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. USE OF THIS SOFTWARE MAY BE SUBJECT TO TERMS AND CONDITIONS CONTAINED IN AN ADDITIONAL AGREEMENT BETWEEN YOU AND RENESAS. IN CASE OF CONFLICT BETWEEN THE TERMS OF THIS NOTICE AND ANY SUCH ADDITIONAL LICENSE AGREEMENT, THE TERMS OF THE AGREEMENT SHALL TAKE PRECEDENCE. BY CONTINUING TO USE THIS SOFTWARE, YOU AGREE TO THE TERMS OF THIS NOTICE.IF YOU DO NOT AGREE TO THESE TERMS, YOU ARE NOT PERMITTED TO USE THIS SOFTWARE.