44 #include <px4_platform_common/posix.h> 91 *(
void **)(uintptr_t)arg = (
void *)
this;
100 case DEVIOCGPUBBLOCK:
104 case DEVIOCGDEVICEID:
virtual int init()
Initialise the driver and make it ready for use.
Namespace encapsulating all device framework classes, functions and data.
Abstract class for any character device.
virtual int ioctl(file_t *filep, int cmd, unsigned long arg)
Perform an ioctl operation on the device.
Generic device / sensor interface.
device identifier information
const char * get_devname() const
Get the device name.
Fundamental base class for all physical drivers (I2C, SPI).
CDev(const char *name, const char *devname)
Constructor.
bool _pub_blocked
true if publishing should be blocked
#define DEVICE_DEBUG(FMT,...)