1.2.9.1 SYS_PORT_PinWrite Function

C

void SYS_PORT_PinWrite(SYS_PORT_PIN pin, bool value)

Summary

Writes to the selected pin.

Description

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

Precondition

Port Initialization must have been done using appropriate Initialize API call.

Parameters

ParamDescription
pinOne of the IO pins from the enum SYS_PORT_PIN
valuevalue to be written on the selected pin:
  • true: set pin to high (1).

  • false: clear pin to low (0).

Returns

None.

Example

SYS_PORT_PinWrite(SYS_PORT_PIN_PB3, true);

Remarks

None.