Smart Remote 3 nRF52 v1.2
m_protocol_hid_state.h
1 /*$$$LICENCE_NORDIC_STANDARD<2016>$$$*/
2 
3 #ifndef M_PROTOCOL_HID_STATE_H__
4 #define M_PROTOCOL_HID_STATE_H__
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
20 typedef struct
21 {
22  uint32_t usage;
23  int16_t value;
25 
26 
32 ret_code_t m_protocol_hid_state_init(void);
33 
46 void m_protocol_hid_state_update(uint32_t usage, int16_t report, bool absolute);
47 
57 #define m_protocol_hid_state_update_rel(usage, report) m_protocol_hid_state_update(usage, report, false)
58 
68 #define m_protocol_hid_state_update_abs(usage, report) m_protocol_hid_state_update(usage, report, true)
69 
75 ret_code_t m_protocol_hid_state_connect(void);
76 
82 ret_code_t m_protocol_hid_state_disconnect(void);
83 
92 
101 
110 
111 #ifdef __cplusplus
112 }
113 #endif
114 
115 #endif /* M_PROTOCOL_HID_STATE_H__ */
116 

Documentation feedback | Developer Zone | Subscribe | Updated