www.beck-ipc.com

@CHIP-RTOS C Library V2.06 - 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

SC1x Return Value

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

SC1x3 Return Value

(PIO[0..15] & 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.

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3
    V1.00V1.00V1.00V0.90

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


End of document