@CHIP-RTOS C Library - Hardware API
hal_write_bus
Write single byte to data bus. The provided parameters are combined as
follows to form the output byte value:
output value = (data & wAND) ^ wXOR
To write the value to the address without modification, set wAND=0xFFFF
and wXOR=0x0000. For SC1x:
void hal_write_bus ( unsigned short adr, unsigned char value,
unsigned short wAND,unsigned short wXOR );
For SC1x3:
void hal_write_bus ( unsigned short adr, unsigned short value,
unsigned short wAND,unsigned short wXOR );
This function is deprecated! Use outport or outportb function from dos.h instead!Parameters
adr
- I/O Address
value
- Value to be output
wAND
- Mask applied to output
wXOR
- Output 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-
| SC12 | SC13 | SC11 | SC1x3 | SC2x |
-
| V1.00 | V1.00 | V1.00 | V0.90 | n/a |
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|