Skip to navigation

hololink::emulation::GPIO_set_value

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

Set the value 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 high/low state of the GPIO pin at the address. Each address supports 32 pins with the 0 pin at GPIO_OUTPUT_BASE_REGISTER + 0 and the 31 pin at GPIO_OUTPUT_BASE_REGISTER + 31.

max_count
int

The maximum number of address-value pairs to set.