@ -126,19 +126,19 @@ BT_GATT_SERVICE_DEFINE(
// BT_GATT_PERM_WRITE, NULL, write_proto_mode, &proto_mode),
// BT_GATT_PERM_WRITE, NULL, write_proto_mode, &proto_mode),
BT_GATT_CHARACTERISTIC ( BT_UUID_HIDS_INFO , BT_GATT_CHRC_READ , BT_GATT_PERM_READ , read_hids_info ,
BT_GATT_CHARACTERISTIC ( BT_UUID_HIDS_INFO , BT_GATT_CHRC_READ , BT_GATT_PERM_READ , read_hids_info ,
NULL , & info ) ,
NULL , & info ) ,
BT_GATT_CHARACTERISTIC ( BT_UUID_HIDS_REPORT_MAP , BT_GATT_CHRC_READ , BT_GATT_PERM_READ ,
BT_GATT_CHARACTERISTIC ( BT_UUID_HIDS_REPORT_MAP , BT_GATT_CHRC_READ , BT_GATT_PERM_READ_ENCRYPT ,
read_hids_report_map , NULL , NULL ) ,
read_hids_report_map , NULL , NULL ) ,
BT_GATT_CHARACTERISTIC ( BT_UUID_HIDS_REPORT , BT_GATT_CHRC_READ | BT_GATT_CHRC_NOTIFY ,
BT_GATT_CHARACTERISTIC ( BT_UUID_HIDS_REPORT , BT_GATT_CHRC_READ | BT_GATT_CHRC_NOTIFY ,
BT_GATT_PERM_READ_ENCRYPT , read_hids_input_report , NULL , NULL ) ,
BT_GATT_PERM_READ_ENCRYPT , read_hids_input_report , NULL , NULL ) ,
BT_GATT_CCC ( input_ccc_changed , BT_GATT_PERM_READ_ENCRYPT | BT_GATT_PERM_WRITE_ENCRYPT ) ,
BT_GATT_CCC ( input_ccc_changed , BT_GATT_PERM_READ_ENCRYPT | BT_GATT_PERM_WRITE_ENCRYPT ) ,
BT_GATT_DESCRIPTOR ( BT_UUID_HIDS_REPORT_REF , BT_GATT_PERM_READ , read_hids_report_ref , NULL ,
BT_GATT_DESCRIPTOR ( BT_UUID_HIDS_REPORT_REF , BT_GATT_PERM_READ_ENCRYPT , read_hids_report_ref ,
& input ) ,
NULL , & input ) ,
BT_GATT_CHARACTERISTIC ( BT_UUID_HIDS_REPORT , BT_GATT_CHRC_READ | BT_GATT_CHRC_NOTIFY ,
BT_GATT_CHARACTERISTIC ( BT_UUID_HIDS_REPORT , BT_GATT_CHRC_READ | BT_GATT_CHRC_NOTIFY ,
BT_GATT_PERM_READ_ENCRYPT , read_hids_consumer_input_report , NULL , NULL ) ,
BT_GATT_PERM_READ_ENCRYPT , read_hids_consumer_input_report , NULL , NULL ) ,
BT_GATT_CCC ( input_ccc_changed , BT_GATT_PERM_READ_ENCRYPT | BT_GATT_PERM_WRITE_ENCRYPT ) ,
BT_GATT_CCC ( input_ccc_changed , BT_GATT_PERM_READ_ENCRYPT | BT_GATT_PERM_WRITE_ENCRYPT ) ,
BT_GATT_DESCRIPTOR ( BT_UUID_HIDS_REPORT_REF , BT_GATT_PERM_READ , read_hids_report_ref , NULL ,
BT_GATT_DESCRIPTOR ( BT_UUID_HIDS_REPORT_REF , BT_GATT_PERM_READ_ENCRYPT , read_hids_report_ref ,
& consumer_input ) ,
NULL , & consumer_input ) ,
BT_GATT_CHARACTERISTIC ( BT_UUID_HIDS_CTRL_POINT , BT_GATT_CHRC_WRITE_WITHOUT_RESP ,
BT_GATT_CHARACTERISTIC ( BT_UUID_HIDS_CTRL_POINT , BT_GATT_CHRC_WRITE_WITHOUT_RESP ,
BT_GATT_PERM_WRITE , NULL , write_ctrl_point , & ctrl_point ) ) ;
BT_GATT_PERM_WRITE , NULL , write_ctrl_point , & ctrl_point ) ) ;