libcortex
Event loop library following a "batteries included" approach
Loading...
Searching...
No Matches
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
15struct uio_device {
16 char *name;
17 unsigned int index;
18};
19
20#define CRTX_UIO_FLAG_NO_READ (1<<0)
21
23 struct crtx_listener_base base;
24
25 char *name;
26 struct uio_device *uio_device;
27
28 int flags;
29};
30
31struct crtx_listener_base *crtx_setup_uio_listener(void *options);
32CRTX_DECLARE_ALLOC_FUNCTION(uio)
33
34void crtx_uio_init();
35void crtx_uio_finish();
36
37#endif
base structure of a listener
Definition core.h:186
Definition uio.h:22
Definition uio.h:15