www.beck-ipc.com

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


hal_read_bus

Read single byte from data bus. The result is combined with wAND and wXOR parameters. To read the data bus without change, set wAND=0xFFFF and wXOR=0x0000.

unsigned char hal_read_bus ( unsigned short adr,
                             unsigned short wAND,
                             unsigned short wXOR );

Parameters

adr

I/O Address

wAND

Result mask

wXOR

Bit Inverter

Return Value

8 data bits = (databus & 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