flinklib
flinklib: flink C library for Linux
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 
22 #ifndef FLINKLIB_IOCTL_H_
23 #define FLINKLIB_IOCTL_H_
24 
25 #include "flinkioctl_cmd.h" // "flinkioctl_cmd.h" is created by: flinkiterface/ioctl/create_flinkioctl_cmd.h.sh
26 
27 typedef struct _ioctl_bit_container_t {
28  uint32_t offset;
29  uint8_t bit;
30  uint8_t value;
31  uint8_t subdevice;
33 
34 typedef struct _ioctl_container_t {
35  uint8_t subdevice;
36  uint32_t offset;
37  uint8_t size;
38  void* data;
40 
41 #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:29
void * data
size of data
Definition: flinkioctl.h:38
struct _ioctl_bit_container_t ioctl_bit_container_t
uint32_t offset
subdevice to read from / write to
Definition: flinkioctl.h:36
uint8_t value
Bit number in byte.
Definition: flinkioctl.h:30
uint8_t subdevice
Value of the bit.
Definition: flinkioctl.h:31
uint8_t size
offset to base address of subdevice
Definition: flinkioctl.h:37