CFG_DioChannelDirection

CFG_DioChannelDirection gets/sets DI/O ports' direction.

Description

Type

INT8U[]

Length

port count * sizeof(INT8U)

Access type

Read/Write

Value

each bit represent one channel:
0: input
1: output
There are four macro we have defined
DIO_ChannelDir_DI: 0x00
DIO_ChannelDir_DO: 0xff
DIO_ChannelDir_HighHalf_DO: 0xf0
DIO_ChannelDir_LowHalf_DO: 0x0f

See also

DRV_DeviceGetProperty

DRV_DeviceSetProperty