1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30#ifndef __CONTROL_H__
31#define __CONTROL_H__
32
33#include "device.h"
34#include "usbpipe.h"
35
36#define CONTROLnsRequestOut(Device, Request, Value, Index, Length, Buffer) \
37 PIPEnsControlOut(Device, Request, Value, Index, Length, Buffer)
38
39#define CONTROLnsRequestOutAsyn(Device, Request, Value, Index, Length, Buffer) \
40 PIPEnsControlOutAsyn(Device, Request, Value, Index, Length, Buffer)
41
42#define CONTROLnsRequestIn(Device, Request, Value, Index, Length, Buffer) \
43 PIPEnsControlIn(Device, Request, Value, Index, Length, Buffer)
44
45void ControlvWriteByte(struct vnt_private *pDevice, u8 reg, u8 reg_off,
46 u8 data);
47
48void ControlvReadByte(struct vnt_private *pDevice, u8 reg, u8 reg_off,
49 u8 *data);
50
51void ControlvMaskByte(struct vnt_private *pDevice, u8 reg_type, u8 reg_off,
52 u8 reg_mask, u8 data);
53
54#endif
55