libcortex
Event loop library following a "batteries included" approach
Loading...
Searching...
No Matches
src
uio.h
1
#ifndef _CRTX_UIO_H
2
#define _CRTX_UIO_H
3
4
/*
5
* Mario Kicherer (dev@kicherer.org) 2023
6
*
7
*/
8
9
#include <linux/gpio.h>
10
#include <sys/ioctl.h>
11
12
// #define CAN_MSG_ETYPE "can/event"
13
// extern char *can_msg_etype[];
14
15
struct
uio_device
{
16
char
*name;
17
unsigned
int
index;
18
};
19
20
#define CRTX_UIO_FLAG_NO_READ (1<<0)
21
22
struct
crtx_uio_listener
{
23
struct
crtx_listener_base
base;
24
25
char
*name;
26
struct
uio_device
*
uio_device
;
27
28
int
flags;
29
};
30
31
struct
crtx_listener_base
*crtx_setup_uio_listener(
void
*options);
32
CRTX_DECLARE_ALLOC_FUNCTION(uio)
33
34
void
crtx_uio_init();
35
void
crtx_uio_finish();
36
37
#endif
crtx_listener_base
base structure of a listener
Definition
core.h:186
crtx_uio_listener
Definition
uio.h:22
uio_device
Definition
uio.h:15
Generated by
1.9.8