Firmware
Public Member Functions | Protected Member Functions | List of all members
LED Class Reference
Inheritance diagram for LED:
cdev::CDev

Public Member Functions

virtual int init ()
 
virtual int ioctl (cdev::file_t *filp, int cmd, unsigned long arg)
 Perform an ioctl operation on the device. More...
 
virtual int init ()
 
virtual int devIOCTL (unsigned long cmd, unsigned long arg)
 

Protected Member Functions

virtual void _measure ()
 

Member Function Documentation

§ ioctl()

int LED::ioctl ( cdev::file_t filep,
int  cmd,
unsigned long  arg 
)
virtual

Perform an ioctl operation on the device.

The default implementation handles DIOC_GETPRIV, and otherwise returns -ENOTTY. Subclasses should call the default implementation for any command they do not handle themselves.

Parameters
filepPointer to the NuttX file structure.
cmdThe ioctl command value.
argThe ioctl argument value.
Returns
OK on success, or -errno otherwise.

Reimplemented from cdev::CDev.


The documentation for this class was generated from the following file: