|
| void | set (bool b=TRUE) |
| | Drive a value on the pin(s), forcing the pin to a GPIO Output.
|
| bool | read () const |
| | Read the line state of the pin(s), configuring the pin as a GPIO Input first.
|
| void | function (int ft) |
| | Set the pin function for the managed pin(s); see PinIO::function().
|
| void | setFn (int ft) |
| | Set the pin function for the managed pin(s); alias of function().
|
| int | getFunction () |
| | Get the pin function currently assigned to the managed pin(s).
|
|
| operator int () |
| | Read the line state of the pin(s) as an int.
|
|
| operator BOOL () |
| | Read the line state of the pin(s) as a BOOL.
|
| bool | readBack () const |
| | Read the pin(s) line state without changing the pin function or direction.
|
| void | multidrv (bool enable) const |
| | Configure the multidrive/open-drain driver for the pin(s).
|
| void | setHighStrength (bool bHighDrive) |
| | Configure the drive strength of the output driver for the pin(s).
|
| void | PullUp (bool enable) const |
| | Configure the pad Pull Up resistor for the pin(s).
|
| void | PullDown (bool enable) const |
| | Configure the pad Pull Down resistor for the pin(s).
|
|
uint16_t | analogRead () const |
| | Read the pin's analog value as a raw ADC count; see PinIO::analogRead(). Only available for pins connected to the ADC.
|
|
void | readyAnalog () |
| | Prepare the pin for analog usage (ADC or ACMP); see PinIO::readyAnalog().
|
|
constexpr uint32_t | analogMaxValue () |
| | The full-scale analog reading: 0xFFF (12-bit ADC).
|
|
uint32_t | n () |
| | Read the pin's analog value as a raw ADC count; see PinIO::n().
|
|
double | v () |
| | Read the pin's analog value as a voltage; see PinIO::v().
|
|
double | volts () |
| | Read the pin's analog value as a voltage; alias of v().
|
|
uint32_t | analogRead () |
| | Read the pin's analog value as a raw ADC count; alias of n().
|
|
void | analogEnableSampleWait (bool bWaitForSample) |
| | Select whether analog reads of this pin wait for a fresh conversion; see PinIO::analogEnableSampleWait().
|
|
void | set () |
| | Set the output latch for the pin(s) High. Does not change the pin function.
|
|
void | clr () |
| | Set the output latch for the pin(s) Low. Does not change the pin function.
|
| bool | tgl () |
| | Toggle the driven value for the pin(s).
|
| bool | toggle () |
| | Toggle the driven value for the pin(s).
|
| bool | read () |
| | Read the line state of the pin(s).
|
|
void | setPull (PinIO::pull_t pull) |
| | Configure the pad Pull resistor for the pin(s).
|
|
void | PullUp () |
| | Enable a medium impedance pad Pull Up resistor for the pin(s).
|
|
void | PullDown () |
| | Enable a weak pad Pull Down resistor for the pin(s).
|
|
PinIO::pull_t | getPull () |
| | Get the configured pad Pull resistor setting for the pin(s).
|
|
void | setSlew (uint8_t slew) |
| | Set the output pad slew rate (0 = slow, lower EMI; 1 = fast); see PinIO::setSlew().
|
|
void | setSpeed (uint8_t speed) |
| | Set the output pad speed/bandwidth; see PinIO::setSpeed() for platform applicability.
|
|
void | setStrength (uint8_t strength) |
| | Set the output driver drive strength; see PinIO::setStrength() for the per-platform scale.
|
|
void | setOpenDrain (bool enable) |
| | Enable/disable open-drain output for the pin(s); see PinIO::setOpenDrain().
|
|
void | setHyst (bool enable) |
| | Enable/disable the input hysteresis (Schmitt trigger); see PinIO::setHyst() for platform applicability.
|
|
uint8_t | getSlew () |
| | Get the configured slew rate (0 = slow, 1 = fast).
|
|
uint8_t | getSpeed () |
| | Get the configured pad speed field; see PinIO::getSpeed().
|
|
uint8_t | getStrength () |
| | Get the configured drive strength; see PinIO::getStrength() for the per-platform scale.
|
|
bool | getOpenDrain () |
| | Get the open-drain enable state for the pin(s).
|
|
bool | getHyst () |
| | Get the input hysteresis (Schmitt trigger) state for the pin(s).
|
|
void | setSchmidt (bool enable) |
| | Enable/disable the input hysteresis (Schmitt trigger); alias of setHyst().
|
|
bool | getSchmidt () |
| | Get the input hysteresis (Schmitt trigger) state; alias of getHyst().
|
|
void | HystOn () |
| | Enable the input hysteresis (Schmitt trigger) for the pin(s).
|
|
void | HystOff () |
| | Disable the input hysteresis (Schmitt trigger) for the pin(s).
|
|
void | SchmidtOn () |
| | Enable the input hysteresis (Schmitt trigger) for the pin(s).
|
|
void | SchmidtOff () |
| | Disable the input hysteresis (Schmitt trigger) for the pin(s).
|
|
void | multidrv (bool enable) |
| | Configure the open-drain (multidrive) driver; alias of setOpenDrain().
|
|
void | hiz () |
| | Set the GPIO direction of the pin(s) to Input (high impedance). Writes the GPIO direction register directly; the pin must already be muxed as a GPIO (see setFn()).
|
|
void | drive () |
| | Set the GPIO direction of the pin(s) to Output, without modifying the driven value. Writes the GPIO direction register directly; the pin must already be muxed as a GPIO (see setFn()).
|
|
void | setFn (PinIO::pin_fn_t fn) |
| | Set the pin function for the managed pin(s).
|
|
PinIO::pin_fn_t | getFn () |
| | Get the pin function for the managed pin(s).
|
|
void | function (PinIO::pin_fn_t fn) |
| | Set the pin function for the managed pin(s).
|
| bool | operator= (bool val) |
| | Assign a driven value to the pin(s).
|
|
FastIO & | operator= (const FastIO &rhs) |
| | Assign a driven value to the pin(s) based on the line state of another pin(s).
|
Fast GPIO Pin Class.
A minimal-overhead variant of PinIO. State accesses write the GPIO data registers directly without validity checks or pin function updates, so it is suited to performance-critical pin twiddling once the pin has been configured.