Smart Remote 3 nRF52 v1.2
Copy URL
Source
Modules
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
;
24
}
m_protocol_hid_state_item_t
;
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
91
m_protocol_hid_state_item_t
*
m_protocol_hid_state_get
(uint32_t usage);
92
100
m_protocol_hid_state_item_t
const
*
m_protocol_hid_state_page_it_init
(uint16_t page);
101
109
m_protocol_hid_state_item_t
const
*
m_protocol_hid_state_page_it_next
(
m_protocol_hid_state_item_t
const
*p_item);
110
111
#ifdef __cplusplus
112
}
113
#endif
114
115
#endif
/* M_PROTOCOL_HID_STATE_H__ */
116