2.77.12 PIO_PinWrite Function

C

void PIO_PinWrite(PIO_PIN pin, bool value)

Summary

Writes the selected pin.

Description

This function writes/drives the "value" on the selected I/O line/pin.

Precondition

The desired pin must be configured as an output pin in MCC Pin Manager. PIO_Initialize() must have been called.

Parameters

ParamDescription
pinOne of the IO pins from the enum PIO_PIN
valuevalue to be written on the selected pin:
- trueset pin to high (1).
- falseclear pin to low (0).

Returns

None.

Example

PIO_PinWrite(PIO_PIN_PB3, true);

Remarks

None.