Rev.1.01 2007.02.16
RJJ10J1643-0101
168
__ReadIOPortRegister
Synopsis
<Read from I/O port register>
Boolean __ReadIOPortRegister(unsigned long data1, unsigned int *data2)
data1
Setup data 1 (content differs with MCU type)
data2
Pointer to the variable in which the value read from I/O port register is stored.
Description
Gets the value of a specified I/O port from each relevant register.
[data1]
Specify an I/O port register from which data is read. The definition values
corresponding to each I/O port register are listed below.
(M16C)
RAPI_PORT_0
Port P0 register
RAPI_PORT_1
Port P1 register
RAPI_PORT_2
Port P2 register
RAPI_PORT_3
Port P3 register
RAPI_PORT_6
Port P6 register
RAPI_PORT_7
Port P7 register
RAPI_PORT_8
Port P8 register
RAPI_PORT_9
Port P9 register
RAPI_PORT_10
Port P10 register
(R8C)
RAPI_PORT_0
Port P0 register
RAPI_PORT_1
Port P1 register
RAPI_PORT_2
Port P2 register
RAPI_PORT_3
Port P3 register
RAPI_PORT_4
Port P4 register
RAPI_PORT_6
Port P6 register
(H8/300H)
RAPI_PORT_1
Port P1 register
RAPI_PORT_2
Port P2 register
RAPI_PORT_3
Port P3 register
RAPI_PORT_5
Port P5 register
RAPI_PORT_6
Port P6 register
RAPI_PORT_7
Port P7 register
RAPI_PORT_8
Port P8 register
RAPI_PORT_9
Port P9 register
RAPI_PORT_B
Port PB register
RAPI_PORT_C
Port PC register
RAPI_PORT_D
Port PD register
RAPI_PORT_E
Port PE register
RAPI_PORT_F
Port PF register
RAPI_PORT_G
Port PG register
RAPI_PORT_H
Port PH register
RAPI_PORT_J
Port PJ register
Return value
If the I/O port register specification is incorrect, RAPI_FALSE is returned; otherwise,
RAPI_TRUE is returned.
Functionality
I/O port
Reference
__SetIOPort
,
__ReadIOPort
,
__WriteIOPort
,
__SetIOPortRegister
,
__WriteIOPortRegister
Remark
•
If an undefined value is specified in the first argument, operation of the API cannot
be guaranteed.
•
The specifiable I/O port registers differ with each CPU used.