#ifndef _WIRELESS_SERVICE_H
#define _WIRELESS_SERVICE_H


/*  ___________________________________________________________________________________
 *      HEAD(1B)    |    HID(0 or 5B)    |    MIC(0 or 32B)    |    CMD(TLV Format)
 *  ___________________________________________________________________________________
 */

/*  TLV Format
 *  __________________________________________________________
 *      TYPE(1B)    |    LENGTH(1B)    |    VALUE(0 or nB)
 *  __________________________________________________________
 */


#define WIRELESS_HEAD_POS                           0
#define WIRELESS_PAYLOAD_POS                        1

#define WIRELESS_CMD_DATA_TYPE_POS                  0
#define WIRELESS_CMD_DATA_LENGTH_POS                1
#define WIRELESS_CMD_DATA_VALUE_POS                 2

#define WIRELESS_HEADER_HID_BIT                     0x01
#define WIRELESS_HEADER_AUDIO_BIT                   0x02
#define WIRELESS_HEADER_CTRL_BIT                    0x04

#define WIRELESS_DATA_LENGTH_HID                    WIRELESS_PACKET_LEN_HID
#define WIRELESS_DATA_LENGTH_AUDIO                  WIRELESS_PACKET_LEN_AUDIO


void wireless_service_init(void);
void wireless_service_proc(void);

#endif // _WIRELESS_SERVICE_H
