Jump to main content

##

# 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

Param | Description
--- | ---
pin | One of the IO pins from the enum SYS_PORT_PIN
value | value 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.