@CHIP-RTOS C Library V2.06 - Hardware API
pfe_get_pio_state
Get programmable PIO pins state. void pfe_get_pio_state ( unsigned int far * wPio,
unsigned int far * wInp,
unsigned int far * wOut ); SC1x Parameters
- wPio
- Output parameter:
Bit 0 = 1: PIO0 is PIO
Bit 1 = 1: PIO1 is PIO
:
:
Bit 13 = 1: PIO13 is PIO
Bit 14..15 not used (for future extensions)
- wInp
- Output parameter:
Bit 0 = 1: PIO0 is input
Bit 1 = 1: PIO1 is input
:
:
Bit 13 = 1: PIO13 is input
Bit 14..15 not used (for future extensions)
- wOut
- Output parameter:
Bit 0 = 1: PIO0 is output
Bit 1 = 1: PIO1 is output
:
:
Bit 13 = 1: PIO13 is output
Bit 14..15 not used (for future extensions)
SC1x3 Parameters
- wPio
- Output parameter:
Bit 0 = 1: PIO0 is PIO
Bit 1 = 1: PIO1 is PIO
:
:
Bit 15 = 1: PIO15 is PIO
- wInp
- Output parameter:
Bit 0 = 1: PIO0 is input
Bit 1 = 1: PIO1 is input
:
:
Bit 15 = 1: PIO15 is input
- wOut
- Output parameter:
Bit 0 = 1: PIO0 is output
Bit 1 = 1: PIO1 is output
:
:
Bit 15 = 1: PIO15 is output
Return Value
- -- none --.
Comments
- The value output to wPio
has bits set to one to indicate
PIO is configured as an I/O pin.
The value output to wInp
has bits set to one to indicate
PIO which are configured as inputs.
The value output to wOut
has bits set to one to indicate
PIO which are configured as outputs.
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 |
-
V1.00 | V1.00 | V1.00 | V0.90 |
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|