hololink::emulation::GPIO_get_direction
hololink::emulation::GPIO_get_direction
Get the direction of the GPIO.
Returns: The number of address-value pairs got.
Parameters
ctxt
The context pointer.
addr_vals
The address-value pair. Each bit in values corresponds to direction of the GPIO pin at the address. Each address supports 32 pins with the 0 pin at GPIO_DIRECTION_BASE_REGISTER + 0 and the 31 pin at GPIO_DIRECTION_BASE_REGISTER + 31.
max_count
The maximum number of address-value pairs to get.