|
DUDS
|
Distributed Update of Data from Something
|
An abstraction for using gpiohandle_request object(s). More...
Public Member Functions | |
| virtual | ~GpioRequest () |
| virtual void | inputOffset (int chipFd, std::uint32_t offset)=0 |
| Configures the pin at the given offset as an input. More... | |
| virtual bool | inputState (int chipFd, std::uint32_t offset)=0 |
| Reads the input state of the indicated pin. More... | |
| virtual void | outputOffset (int chipFd, std::uint32_t offset, bool state)=0 |
| Configures the pin at the given offset as an output. More... | |
| virtual void | outputState (std::uint32_t offset, bool state)=0 |
| Sets the output state of a single pin in advance of making the output request to the port. More... | |
| virtual void | read (int chipFd, gpiohandle_data &result, std::uint32_t *&offsets, int &length)=0 |
| Read from all input pins. More... | |
| virtual void | write (int chipFd)=0 |
| Configures pins as outputs and sets their output states. More... | |
| virtual void | write (int chipFd, std::uint32_t offset, bool state)=0 |
| Sets the output state of a single output pin. More... | |
An abstraction for using gpiohandle_request object(s).
Definition at line 180 of file GpioDevPort.cpp.
|
inlinevirtual |
Definition at line 182 of file GpioDevPort.cpp.
|
pure virtual |
Configures the pin at the given offset as an input.
| chipFd | The file descriptor for the GPIO device. |
| offset | The pin offset. |
Implemented in duds::hardware::interface::linux::IoGpioRequest, and duds::hardware::interface::linux::SingleGpioRequest.
Referenced by duds::hardware::interface::linux::GpioDevPort::configurePort(), and ~GpioRequest().
|
pure virtual |
Reads the input state of the indicated pin.
Configures the pin as an input if not already an input.
| chipFd | The file descriptor for the GPIO device. |
| offset | The pin offset. |
Implemented in duds::hardware::interface::linux::IoGpioRequest, and duds::hardware::interface::linux::SingleGpioRequest.
Referenced by duds::hardware::interface::linux::GpioDevPort::inputImpl(), and ~GpioRequest().
|
pure virtual |
Configures the pin at the given offset as an output.
| chipFd | The file descriptor for the GPIO device. |
| offset | The pin offset. |
| state | The output state for the pin. |
Implemented in duds::hardware::interface::linux::IoGpioRequest, and duds::hardware::interface::linux::SingleGpioRequest.
Referenced by duds::hardware::interface::linux::GpioDevPort::configurePort(), and ~GpioRequest().
|
pure virtual |
Sets the output state of a single pin in advance of making the output request to the port.
Use write(int) to output the data.
| offset | The pin offset. |
| state | The output state to store for the pin. |
Implemented in duds::hardware::interface::linux::IoGpioRequest, and duds::hardware::interface::linux::SingleGpioRequest.
Referenced by duds::hardware::interface::linux::GpioDevPort::outputImpl(), and ~GpioRequest().
|
pure virtual |
Read from all input pins.
| chipFd | The file descriptor for the GPIO device. |
| result | The input states. |
| offsets | A pointer to the start of an array with the line offset values for identifying where the input source. |
| length | The number of line offsets. |
Implemented in duds::hardware::interface::linux::IoGpioRequest, and duds::hardware::interface::linux::SingleGpioRequest.
Referenced by duds::hardware::interface::linux::GpioDevPort::inputImpl(), and ~GpioRequest().
|
pure virtual |
Configures pins as outputs and sets their output states.
| chipFd | The file descriptor for the GPIO device. |
Implemented in duds::hardware::interface::linux::IoGpioRequest, and duds::hardware::interface::linux::SingleGpioRequest.
Referenced by duds::hardware::interface::linux::GpioDevPort::outputImpl(), and ~GpioRequest().
|
pure virtual |
Sets the output state of a single output pin.
| chipFd | The file descriptor for the GPIO device. |
| offset | The pin offset. |
| state | The output state for the pin. |
Implemented in duds::hardware::interface::linux::IoGpioRequest, and duds::hardware::interface::linux::SingleGpioRequest.