|
| PX4Gyroscope (uint32_t device_id, uint8_t priority, enum Rotation rotation) |
|
int | ioctl (cdev::file_t *filp, int cmd, unsigned long arg) override |
| Perform an ioctl operation on the device. More...
|
|
void | set_device_type (uint8_t devtype) |
|
void | set_error_count (uint64_t error_count) |
|
void | set_scale (float scale) |
|
void | set_temperature (float temperature) |
|
void | set_sample_rate (unsigned rate) |
|
void | configure_filter (float cutoff_freq) |
|
void | update (hrt_abstime timestamp, int16_t x, int16_t y, int16_t z) |
|
void | print_status () |
|
| CDev (const char *devname) |
| Constructor. More...
|
|
virtual int | init () |
|
virtual int | open (file_t *filep) |
| Handle an open of the device. More...
|
|
virtual int | close (file_t *filep) |
| Handle a close of the device. More...
|
|
virtual ssize_t | read (file_t *filep, char *buffer, size_t buflen) |
| Perform a read from the device. More...
|
|
virtual ssize_t | write (file_t *filep, const char *buffer, size_t buflen) |
| Perform a write to the device. More...
|
|
virtual off_t | seek (file_t *filep, off_t offset, int whence) |
| Perform a logical seek operation on the device. More...
|
|
virtual int | poll (file_t *filep, px4_pollfd_struct_t *fds, bool setup) |
| Perform a poll setup/teardown operation. More...
|
|
const char * | get_devname () const |
| Get the device name. More...
|
|
| ModuleParams (ModuleParams *parent) |
|
void | setParent (ModuleParams *parent) |
| Sets the parent module. More...
|
|
| ModuleParams (const ModuleParams &)=delete |
|
ModuleParams & | operator= (const ModuleParams &)=delete |
|
| ModuleParams (ModuleParams &&)=delete |
|
ModuleParams & | operator= (ModuleParams &&)=delete |
|
void | setSibling (ModuleParams * sibling) |
|
const ModuleParams * | getSibling () const |
|
|
virtual pollevent_t | poll_state (file_t *filep) |
| Check the current state of the device for poll events from the perspective of the file. More...
|
|
virtual void | poll_notify (pollevent_t events) |
| Report new poll events. More...
|
|
virtual void | poll_notify_one (px4_pollfd_struct_t *fds, pollevent_t events) |
| Internal implementation of poll_notify. More...
|
|
virtual int | open_first (file_t *filep) |
| Notification of the first open. More...
|
|
virtual int | close_last (file_t *filep) |
| Notification of the last close. More...
|
|
virtual int | register_class_devname (const char *class_devname) |
| Register a class device name, automatically adding device class instance suffix if need be. More...
|
|
virtual int | unregister_class_devname (const char *class_devname, unsigned class_instance) |
| Register a class device name, automatically adding device class instance suffix if need be. More...
|
|
void | lock () |
| Take the driver lock. More...
|
|
void | unlock () |
| Release the driver lock.
|
|
virtual void | updateParams () |
| Call this method whenever the module gets a parameter change notification. More...
|
|
virtual void | updateParamsImpl () |
| The implementation for this is generated with the macro DEFINE_PARAMETERS()
|
|
px4_sem_t | _lock |
| lock to protect access to all class members (also for derived classes)
|
|
ModuleParams * | _sibling |
|
static const px4_file_operations_t | fops = {} |
| Pointer to the default cdev file operations table; useful for registering clone devices etc.
|
|