Skip to navigation

hololink::emulation::GPIO_set_direction

View as Markdown
int hololink::emulation::GPIO_set_direction(
void *ctxt,
struct AddressValuePair *addr_vals,
int max_count
)

Set the direction of the GPIO.

Returns: The number of address-value pairs set.

Parameters

ctxt
void *

The context pointer.

addr_vals
struct AddressValuePair *

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
int

The maximum number of address-value pairs to set.