Lines Matching refs:pin_number

64     uint32_t             pin_number,  in nrf_gpio_cfg()  argument
71 NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number); in nrf_gpio_cfg()
72 uint32_t cnf = reg->PIN_CNF[pin_number]; in nrf_gpio_cfg()
97 reg->PIN_CNF[pin_number] = cnf; in nrf_gpio_cfg()
99 nrf_gpio_regw_sideeffects_PIN_CNF(gpio_number_from_ptr(reg), pin_number); in nrf_gpio_cfg()
102 void nrf_gpio_reconfigure(uint32_t pin_number, in nrf_gpio_reconfigure() argument
109 NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number); in nrf_gpio_reconfigure()
110 uint32_t cnf = reg->PIN_CNF[pin_number]; in nrf_gpio_reconfigure()
133 reg->PIN_CNF[pin_number] = cnf; in nrf_gpio_reconfigure()
135 nrf_gpio_regw_sideeffects_PIN_CNF(gpio_number_from_ptr(reg), pin_number); in nrf_gpio_reconfigure()
139 void nrf_gpio_port_pin_output_set(NRF_GPIO_Type * p_reg, uint32_t pin_number) in nrf_gpio_port_pin_output_set() argument
150 p_reg->PIN_CNF[pin_number] = cnf; in nrf_gpio_port_pin_output_set()
151 nrf_gpio_regw_sideeffects_PIN_CNF(gpio_number_from_ptr(p_reg), pin_number); in nrf_gpio_port_pin_output_set()
155 uint32_t pin_number, in nrf_gpio_port_pin_input_set() argument
167 p_reg->PIN_CNF[pin_number] = cnf; in nrf_gpio_port_pin_input_set()
168 nrf_gpio_regw_sideeffects_PIN_CNF(gpio_number_from_ptr(p_reg), pin_number); in nrf_gpio_port_pin_input_set()
171 void nrf_gpio_pin_dir_set(uint32_t pin_number, nrf_gpio_pin_dir_t direction) in nrf_gpio_pin_dir_set() argument
176 pin_number, in nrf_gpio_pin_dir_set()
185 NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number); in nrf_gpio_pin_dir_set()
186 reg->DIRSET = (1UL << pin_number); in nrf_gpio_pin_dir_set()
192 void nrf_gpio_pin_toggle(uint32_t pin_number) in nrf_gpio_pin_toggle() argument
194 NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number); in nrf_gpio_pin_toggle()
199 reg->OUTSET = (~pins_state & (1UL << pin_number)); in nrf_gpio_pin_toggle()
201 reg->OUTCLR = (pins_state & (1UL << pin_number)); in nrf_gpio_pin_toggle()
270 void nrf_gpio_pin_latch_clear(uint32_t pin_number) in nrf_gpio_pin_latch_clear() argument
272 NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number); in nrf_gpio_pin_latch_clear()
274 reg->LATCH = (1 << pin_number); in nrf_gpio_pin_latch_clear()