flinklib
flinklib: flink C library for Linux
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
flinkioctl.h
Go to the documentation of this file.
1 /*******************************************************************
2  * _________ _____ _____ ____ _____ ___ ____ *
3  * |_ ___ | |_ _| |_ _| |_ \|_ _| |_ ||_ _| *
4  * | |_ \_| | | | | | \ | | | |_/ / *
5  * | _| | | _ | | | |\ \| | | __'. *
6  * _| |_ _| |__/ | _| |_ _| |_\ |_ _| | \ \_ *
7  * |_____| |________| |_____| |_____|\____| |____||____| *
8  * *
9  *******************************************************************
10  * *
11  * fLink userspace library, ioctl definitions *
12  * *
13  *******************************************************************/
14 
23 #ifndef FLINKLIB_IOCTL_H_
24 #define FLINKLIB_IOCTL_H_
25 
26 typedef enum {
37 } ioctl_cmd_t;
38 
39 typedef struct _ioctl_bit_container_t {
40  uint32_t offset;
41  uint8_t bit;
42  uint8_t value;
43  uint8_t subdevice;
45 
46 typedef struct _ioctl_container_t {
47  uint8_t subdevice;
48  uint32_t offset;
49  uint8_t size;
50  void* data;
52 
53 #endif // FLINKLIB_IOCTL_H_
struct _ioctl_container_t ioctl_container_t
uint8_t bit
Offset of byte containing the single bit, taken from subdevice base address.
Definition: flinkioctl.h:41
ioctl_cmd_t
Definition: flinkioctl.h:26
void * data
size of data
Definition: flinkioctl.h:50
struct _ioctl_bit_container_t ioctl_bit_container_t
uint32_t offset
subdevice to read from / write to
Definition: flinkioctl.h:48
uint8_t value
Bit number in byte.
Definition: flinkioctl.h:42
uint8_t subdevice
Value of the bit.
Definition: flinkioctl.h:43
uint8_t size
offset to base address of subdevice
Definition: flinkioctl.h:49