gpio_set_dir_masked() function
Set multiple GPIO directions For each 1 bit in "mask", switch that pin to the direction given by corresponding bit in "value", leaving other pins unchanged. E.g. gpio_set_dir_masked(0x3, 0x2); -> set pin 0 to input, pin 1 to output, simultaneously.
Syntax
static inline void gpio_set_dir_masked(uint32_t mask,
uint32_t value);
Arguments
mask
Bitmask of GPIO to set to input, as bits 0-29
![]()
static inline void gpio_set_dir_masked(uint32_t mask, uint32_t value) {
gpio_set_dir_masked() is called by 1 function and calls 2 functions:
![]()
gpio_set_dir_masked()
gpio_set_dir_masked():
![]()
gpio_set_dir_masked()