
PIO-D64/PIO-
D64U User’s Manual ( Ver.1.
6, Mar. 2015, PMH-007-16 ) ----- 40
5.4
Digital I/O FUNCTIONS
5.4.1 PIODIO_OutputByte
Description :
Send the 8 bits data to the specified I/O port.
Syntax :
void PIODIO_OutputByte(DWORD wPortAddr, WORD bOutputVal);
Parameter :
WPortAddr
: [
Input
] I/O port addresses, please refer to function
PIODIO_GetConfigAddressSpace. Only the low
WORD is valid.
bOutputVal : [
Input
] 8 bit data send to I/O port.
Only the low BYTE is valid.
Return:
None
5.4.2 PIODIO_InputByte
Description :
Read the 8 bits data from the specified I/O port.
Syntax :
WORD PIODIO_InputByte(DWORD wPortAddr);
Parameter :
wPortAddr: [
Input
] I/O port addresses, please refer to function
PIODIO_GetConfigAddressSpace().
Only the low WORD is valid.
Return:
16 bits data with the leading 8 bits are all 0.
(Only the low BYTE is valid.)
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru