hid_device.c (9679ea8161eb8c53627b545aeb06e3590135a2ba) hid_device.c (45a58b3093f5320b8ffda59b52081d2b540d3217)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 315 unchanged lines hidden (view full) ---

324}
325
326/**
327 * @brief Set up HID Device
328 */
329void hid_device_init(void){
330 memset(hid_device, 0, sizeof(hid_device_t));
331 hid_device->cid = 1;
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 315 unchanged lines hidden (view full) ---

324}
325
326/**
327 * @brief Set up HID Device
328 */
329void hid_device_init(void){
330 memset(hid_device, 0, sizeof(hid_device_t));
331 hid_device->cid = 1;
332 l2cap_register_service(packet_handler, PSM_HID_INTERRUPT, 100, LEVEL_0);
333 l2cap_register_service(packet_handler, PSM_HID_CONTROL, 100, LEVEL_0);
332 l2cap_register_service(packet_handler, PSM_HID_INTERRUPT, 100, LEVEL_2);
333 l2cap_register_service(packet_handler, PSM_HID_CONTROL, 100, LEVEL_2);
334}
335
336/**
337 * @brief Register callback for the HID Device client.
338 * @param callback
339 */
340void hid_device_register_packet_handler(btstack_packet_handler_t callback){
341 hid_callback = callback;

--- 32 unchanged lines hidden ---
334}
335
336/**
337 * @brief Register callback for the HID Device client.
338 * @param callback
339 */
340void hid_device_register_packet_handler(btstack_packet_handler_t callback){
341 hid_callback = callback;

--- 32 unchanged lines hidden ---