www.beck-ipc.com

@CHIP-RTOS C Library V2.00 - Hardware API


hal_read_pios

Read the programmable I/O pins. The result is combined with the wAND and wXOR parameters.   To read the PIO pins without modification, set wAND=0xFFFF and wXOR=0x0000 .   To read only the input pins, set wAND = wInp value output from the pfe_get_pio_state function.

unsigned short hal_read_pios ( unsigned short wAND,
                               unsigned short wXOR );

Parameters

wAND

mask

wXOR

bit inverter

Return Value

(PIO[0..13] & wAND) ^ wXOR

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