1.2.9.1 SYS_PORT_PinWrite Function

1.2.9.1 C

void SYS_PORT_PinWrite(SYS_PORT_PIN pin, bool value)

1.2.9.1 Summary

Writes to the selected pin.

1.2.9.1 Description

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

1.2.9.1 Precondition

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

1.2.9.1 Parameters

ParametersDescription
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)

1.2.9.1 Returns

None.

1.2.9.1 Example

SYS_PORT_PinWrite(SYS_PORT_PIN_PB3, true);

1.2.9.1 Remarks

None.