www.beck-ipc.com

@CHIP-RTOS C Library - Hardware API


hal_write_pios

Write to the programmable I/O pins.   Before the value is written, the value is combined with the wAND and wXOR parameters as:

    SC1x:     PIO[0..13] = (data & wAND) ^ wXOR
    SC1x3:    PIO[0..15] = (data & wAND) ^ wXOR
    SC2x:     PIO[0..2, 9..13] = (data & wAND) ^ wXOR

To write value to the programmable I/O pins without change, set wAND=0xFFFF and wXOR=0x0000.

Only PIO pins that are defined as outputs can be written.

void hal_write_pios ( unsigned short value,
                      unsigned short wAND,
                      unsigned short wXOR );

Parameters

value

output data

wAND

mask

wXOR

bit inverter

Return Value

-- none --.

Comments

& = bit wise AND
^ = bit wise XOR

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3SC2x
    V1.00V1.00V1.00V1.07V1.00

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document