40 #ifndef _DEVICE_CDEV_HPP 41 #define _DEVICE_CDEV_HPP 44 #include <lib/cdev/CDev.hpp> 69 CDev(
const char *name,
const char *devname);
71 virtual ~
CDev() =
default;
87 virtual int ioctl(
file_t *filep,
int cmd,
unsigned long arg);
91 bool _pub_blocked{
false};
101 CLASS_DEVICE_PRIMARY = 0,
102 CLASS_DEVICE_SECONDARY = 1,
103 CLASS_DEVICE_TERTIARY = 2
Definitions for the generic base classes in the device framework.
Configuration flags used in code.
Includes POSIX-like functions for virtual character devices.
Namespace encapsulating all device framework classes, functions and data.
Definition: CDev.cpp:47
Abstract class for any character device.
Definition: CDev.hpp:60
Fundamental base class for all physical drivers (I2C, SPI).
Definition: Device.hpp:65
Definition: cdev_platform.hpp:20
Abstract class for any character device.
Definition: CDev.hpp:58