LCC Fusion Project 1.0
LCC Automation
Loading...
Searching...
No Matches
PWMGPO Class Reference

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
 

Detailed Description

General Purpose Output specialization of a PWM Bit.

Definition at line 101 of file PWM_updated.h.

Constructor & Destructor Documentation

◆ PWMGPO()

PWMGPO::PWMGPO ( PWM instance,
uint32_t  on_counts,
uint32_t  off_counts 
)
inline

Constructor.

Parameters
instancereference to the chip
on_countsPWM count for the "on" state
off_countsPWM count for the "off" state

Definition at line 108 of file PWM_updated.h.

Member Function Documentation

◆ direction()

Direction PWMGPO::direction ( ) const
inlineoverride

Gets the GPO direction.

Returns
always returns OUTPUT

Definition at line 155 of file PWM_updated.h.

◆ read()

Value PWMGPO::read ( ) const
inlineoverride

Retrieves the current Value of a GPO output sate (requested).

Returns
SET if currently high, CLR if currently low

Definition at line 129 of file PWM_updated.h.

Here is the call graph for this function:

◆ set_direction()

void PWMGPO::set_direction ( Gpio::Direction  dir) const
inlineoverride

Sets the GPO direction (does nothing).

Parameters
dirINPUT or OUTPUT

Definition at line 148 of file PWM_updated.h.

◆ write()

void PWMGPO::write ( Value  new_state) const
inlineoverride

Writes a GPO pin (set or clear to a specific state).

Parameters
new_statethe desired output state. See Value.

Definition at line 122 of file PWM_updated.h.

Here is the call graph for this function:

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