www.beck-ipc.com

@CHIP-RTOS C Library V2.00 - 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:
        PIO[0..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.


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


End of document