|
LCC Fusion Project 1.0
LCC Automation
|
General Purpose Output specialization of a PWM Bit. More...
#include <PWM_updated.h>
Inherits Gpio.
Public Member Functions | |
| PWMGPO (PWM *instance, uint32_t on_counts, uint32_t off_counts) | |
| void | write (Value new_state) const override |
| Value | read () const override |
| void | set () const override |
| Sets the GPO pin to high. | |
| void | clr () const override |
| Clears the GPO pin to low. | |
| void | set_direction (Gpio::Direction dir) const override |
| Direction | direction () const override |
General Purpose Output specialization of a PWM Bit.
Definition at line 101 of file PWM_updated.h.
|
inline |
Constructor.
| instance | reference to the chip |
| on_counts | PWM count for the "on" state |
| off_counts | PWM count for the "off" state |
Definition at line 108 of file PWM_updated.h.
|
inlineoverride |
|
inlineoverride |
Retrieves the current Value of a GPO output sate (requested).
Definition at line 129 of file PWM_updated.h.

|
inlineoverride |
Sets the GPO direction (does nothing).
| dir | INPUT or OUTPUT |
Definition at line 148 of file PWM_updated.h.
|
inlineoverride |
Writes a GPO pin (set or clear to a specific state).
| new_state | the desired output state. See Value. |
Definition at line 122 of file PWM_updated.h.
