| /hal_nordic-latest/nrfx/drivers/src/ |
| D | nrfx_gpiote.c | 254 static uint8_t get_pin_idx(nrfx_gpiote_pin_t pin) in get_pin_idx() argument 258 return (uint8_t)pin; in get_pin_idx() 280 return port_offset[pin >> 5] + (pin & 0x1F); in get_pin_idx() 311 static bool pin_in_use(nrfx_gpiote_t const * p_instance, uint32_t pin) in pin_in_use() argument 313 return get_cb(p_instance->drv_inst_idx)->pin_flags[get_pin_idx(pin)] & PIN_FLAG_IN_USE; in pin_in_use() 325 static bool pin_in_use_by_te(nrfx_gpiote_t const * p_instance, uint32_t pin) in pin_in_use_by_te() argument 327 return get_cb(p_instance->drv_inst_idx)->pin_flags[get_pin_idx(pin)] & PIN_FLAG_TE_USED; in pin_in_use_by_te() 337 static bool pin_has_trigger(nrfx_gpiote_t const * p_instance, uint32_t pin) in pin_has_trigger() argument 340 get_cb(p_instance->drv_inst_idx)->pin_flags[get_pin_idx(pin)]) != in pin_has_trigger() 353 static bool pin_is_output(nrfx_gpiote_t const * p_instance, uint32_t pin) in pin_is_output() argument [all …]
|
| D | nrfx_spim.c | 236 static void pin_init(uint32_t pin, in pin_init() argument 244 if (pin == NRF_SPIM_PIN_NOT_CONNECTED) in pin_init() 253 nrfy_gpio_pin_set(pin); in pin_init() 257 nrfy_gpio_pin_clear(pin); in pin_init() 266 nrfy_gpio_cfg(pin, dir, input, pull, drive, NRF_GPIO_PIN_NOSENSE); in pin_init() 670 static void spim_pin_uninit(uint32_t pin) in spim_pin_uninit() argument 672 if (pin == NRF_SPIM_PIN_NOT_CONNECTED) in spim_pin_uninit() 677 nrfy_gpio_cfg_default(pin); in spim_pin_uninit()
|
| /hal_nordic-latest/nrfx/drivers/include/ |
| D | nrfx_gpiote.h | 101 typedef void (*nrfx_gpiote_interrupt_handler_t)(nrfx_gpiote_pin_t pin, 193 bool nrfx_gpiote_in_is_set(nrfx_gpiote_pin_t pin); 297 nrfx_gpiote_pin_t pin, 324 nrfx_gpiote_pin_t pin, 341 nrfx_err_t nrfx_gpiote_pin_uninit(nrfx_gpiote_t const * p_instance, nrfx_gpiote_pin_t pin); 354 nrfx_gpiote_pin_t pin, 363 void nrfx_gpiote_trigger_disable(nrfx_gpiote_t const * p_instance, nrfx_gpiote_pin_t pin); 387 nrfx_gpiote_pin_t pin, 405 void nrfx_gpiote_out_set(nrfx_gpiote_t const * p_instance, nrfx_gpiote_pin_t pin); 413 void nrfx_gpiote_out_clear(nrfx_gpiote_t const * p_instance, nrfx_gpiote_pin_t pin); [all …]
|
| /hal_nordic-latest/drivers/nrf_802154/driver/src/ |
| D | nrf_802154_debug_core.h | 77 #define nrf_802154_pin_set(pin) NRF_P0->OUTSET = (1UL << (pin)) argument 78 #define nrf_802154_pin_clr(pin) NRF_P0->OUTCLR = (1UL << (pin)) argument 79 #define nrf_802154_pin_tgl(pin) \ argument 84 NRF_P0->OUTSET = (~ps & (1UL << (pin))); \ 85 NRF_P0->OUTCLR = (ps & (1UL << (pin))); \ 91 #define nrf_802154_pin_set(pin) 92 #define nrf_802154_pin_clr(pin) 93 #define nrf_802154_pin_tgl(pin)
|
| /hal_nordic-latest/nrfx/samples/src/nrfx_saadc/common/ |
| D | saadc_examples_common.c | 38 void gpiote_pin_toggle_task_setup(nrfx_gpiote_t const * p_gpiote, nrfx_gpiote_pin_t pin) in gpiote_pin_toggle_task_setup() argument 61 status = nrfx_gpiote_output_configure(p_gpiote, pin, &output_config, &task_config); in gpiote_pin_toggle_task_setup() 64 nrfx_gpiote_out_task_enable(p_gpiote, pin); in gpiote_pin_toggle_task_setup() 67 void pin_on_event_toggle_setup(nrfx_gpiote_t const * p_gpiote, nrfx_gpiote_pin_t pin, uint32_t eep) in pin_on_event_toggle_setup() argument 74 gpiote_pin_toggle_task_setup(p_gpiote, pin); in pin_on_event_toggle_setup() 81 nrfx_gpiote_out_task_address_get(p_gpiote, pin)); in pin_on_event_toggle_setup()
|
| D | saadc_examples_common.h | 87 void gpiote_pin_toggle_task_setup(nrfx_gpiote_t const * p_gpiote, nrfx_gpiote_pin_t pin); 96 void pin_on_event_toggle_setup(nrfx_gpiote_t const * p_gpiote, nrfx_gpiote_pin_t pin, uint32_t eep);
|
| /hal_nordic-latest/nrfx/hal/ |
| D | nrf_spi.h | 210 NRF_STATIC_INLINE void nrf_spi_sck_pin_set(NRF_SPI_Type * p_reg, uint32_t pin); 218 NRF_STATIC_INLINE void nrf_spi_mosi_pin_set(NRF_SPI_Type * p_reg, uint32_t pin); 226 NRF_STATIC_INLINE void nrf_spi_miso_pin_set(NRF_SPI_Type * p_reg, uint32_t pin); 365 NRF_STATIC_INLINE void nrf_spi_sck_pin_set(NRF_SPI_Type * p_reg, uint32_t pin) in nrf_spi_sck_pin_set() argument 368 p_reg->PSEL.SCK = pin; in nrf_spi_sck_pin_set() 370 p_reg->PSELSCK = pin; in nrf_spi_sck_pin_set() 374 NRF_STATIC_INLINE void nrf_spi_mosi_pin_set(NRF_SPI_Type * p_reg, uint32_t pin) in nrf_spi_mosi_pin_set() argument 377 p_reg->PSEL.MOSI = pin; in nrf_spi_mosi_pin_set() 379 p_reg->PSELMOSI = pin; in nrf_spi_mosi_pin_set() 383 NRF_STATIC_INLINE void nrf_spi_miso_pin_set(NRF_SPI_Type * p_reg, uint32_t pin) in nrf_spi_miso_pin_set() argument [all …]
|
| D | nrf_i2s.h | 428 NRF_STATIC_INLINE void nrf_i2s_sck_pin_set(NRF_I2S_Type * p_reg, uint32_t pin); 436 NRF_STATIC_INLINE void nrf_i2s_lrck_pin_set(NRF_I2S_Type * p_reg, uint32_t pin); 444 NRF_STATIC_INLINE void nrf_i2s_mck_pin_set(NRF_I2S_Type * p_reg, uint32_t pin); 452 NRF_STATIC_INLINE void nrf_i2s_sdout_pin_set(NRF_I2S_Type * p_reg, uint32_t pin); 460 NRF_STATIC_INLINE void nrf_i2s_sdin_pin_set(NRF_I2S_Type * p_reg, uint32_t pin); 687 NRF_STATIC_INLINE void nrf_i2s_sck_pin_set(NRF_I2S_Type * p_reg, uint32_t pin) in nrf_i2s_sck_pin_set() argument 689 p_reg->PSEL.SCK = pin; in nrf_i2s_sck_pin_set() 692 NRF_STATIC_INLINE void nrf_i2s_lrck_pin_set(NRF_I2S_Type * p_reg, uint32_t pin) in nrf_i2s_lrck_pin_set() argument 694 p_reg->PSEL.LRCK = pin; in nrf_i2s_lrck_pin_set() 697 NRF_STATIC_INLINE void nrf_i2s_mck_pin_set(NRF_I2S_Type * p_reg, uint32_t pin) in nrf_i2s_mck_pin_set() argument [all …]
|
| D | nrf_qspi.h | 94 #define NRF_QSPI_PIN_VAL(pin) (pin) == NRF_QSPI_PIN_NOT_CONNECTED ? 0xFFFFFFFF : (pin) argument 409 NRF_STATIC_INLINE void nrf_qspi_pin_sck_set(NRF_QSPI_Type * p_reg, uint32_t pin); 417 NRF_STATIC_INLINE void nrf_qspi_pin_csn_set(NRF_QSPI_Type * p_reg, uint32_t pin); 425 NRF_STATIC_INLINE void nrf_qspi_pin_io0_set(NRF_QSPI_Type * p_reg, uint32_t pin); 433 NRF_STATIC_INLINE void nrf_qspi_pin_io1_set(NRF_QSPI_Type * p_reg, uint32_t pin); 441 NRF_STATIC_INLINE void nrf_qspi_pin_io2_set(NRF_QSPI_Type * p_reg, uint32_t pin); 449 NRF_STATIC_INLINE void nrf_qspi_pin_io3_set(NRF_QSPI_Type * p_reg, uint32_t pin); 802 NRF_STATIC_INLINE void nrf_qspi_pin_sck_set(NRF_QSPI_Type * p_reg, uint32_t pin) in nrf_qspi_pin_sck_set() argument 804 p_reg->PSEL.SCK = NRF_QSPI_PIN_VAL(pin); in nrf_qspi_pin_sck_set() 807 NRF_STATIC_INLINE void nrf_qspi_pin_csn_set(NRF_QSPI_Type * p_reg, uint32_t pin) in nrf_qspi_pin_csn_set() argument [all …]
|
| D | nrf_qdec.h | 279 NRF_STATIC_INLINE void nrf_qdec_phase_a_pin_set(NRF_QDEC_Type * p_reg, uint32_t pin); 287 NRF_STATIC_INLINE void nrf_qdec_phase_b_pin_set(NRF_QDEC_Type * p_reg, uint32_t pin); 295 NRF_STATIC_INLINE void nrf_qdec_led_pin_set(NRF_QDEC_Type * p_reg, uint32_t pin); 595 NRF_STATIC_INLINE void nrf_qdec_phase_a_pin_set(NRF_QDEC_Type * p_reg, uint32_t pin) in nrf_qdec_phase_a_pin_set() argument 598 p_reg->PSEL.A = pin; in nrf_qdec_phase_a_pin_set() 600 p_reg->PSELA = pin; in nrf_qdec_phase_a_pin_set() 604 NRF_STATIC_INLINE void nrf_qdec_phase_b_pin_set(NRF_QDEC_Type * p_reg, uint32_t pin) in nrf_qdec_phase_b_pin_set() argument 607 p_reg->PSEL.B = pin; in nrf_qdec_phase_b_pin_set() 609 p_reg->PSELB = pin; in nrf_qdec_phase_b_pin_set() 613 NRF_STATIC_INLINE void nrf_qdec_led_pin_set(NRF_QDEC_Type * p_reg, uint32_t pin) in nrf_qdec_led_pin_set() argument [all …]
|
| D | nrf_twi.h | 257 NRF_STATIC_INLINE void nrf_twi_scl_pin_set(NRF_TWI_Type * p_reg, uint32_t pin); 265 NRF_STATIC_INLINE void nrf_twi_sda_pin_set(NRF_TWI_Type * p_reg, uint32_t pin); 428 NRF_STATIC_INLINE void nrf_twi_scl_pin_set(NRF_TWI_Type * p_reg, uint32_t pin) in nrf_twi_scl_pin_set() argument 431 p_reg->PSEL.SCL = pin; in nrf_twi_scl_pin_set() 433 p_reg->PSELSCL = pin; in nrf_twi_scl_pin_set() 437 NRF_STATIC_INLINE void nrf_twi_sda_pin_set(NRF_TWI_Type * p_reg, uint32_t pin) in nrf_twi_sda_pin_set() argument 440 p_reg->PSEL.SDA = pin; in nrf_twi_sda_pin_set() 442 p_reg->PSELSDA = pin; in nrf_twi_sda_pin_set()
|
| D | nrf_common.h | 146 #define NRF_PIN_NUMBER_TO_PIN(pin) ((pin) & 0x1F) argument 149 #define NRF_PIN_NUMBER_TO_PORT(pin) ((pin) >> 5) argument 152 #define NRF_PIN_PORT_TO_PIN_NUMBER(pin, port) (((pin) & 0x1F) | ((port) << 5)) argument
|
| D | nrf_spis.h | 437 NRF_STATIC_INLINE void nrf_spis_sck_pin_set(NRF_SPIS_Type * p_reg, uint32_t pin); 445 NRF_STATIC_INLINE void nrf_spis_mosi_pin_set(NRF_SPIS_Type * p_reg, uint32_t pin); 453 NRF_STATIC_INLINE void nrf_spis_miso_pin_set(NRF_SPIS_Type * p_reg, uint32_t pin); 461 NRF_STATIC_INLINE void nrf_spis_csn_pin_set(NRF_SPIS_Type * p_reg, uint32_t pin); 869 NRF_STATIC_INLINE void nrf_spis_sck_pin_set(NRF_SPIS_Type * p_reg, uint32_t pin) in nrf_spis_sck_pin_set() argument 872 p_reg->PSELSCK = pin; in nrf_spis_sck_pin_set() 874 p_reg->PSEL.SCK = pin; in nrf_spis_sck_pin_set() 878 NRF_STATIC_INLINE void nrf_spis_mosi_pin_set(NRF_SPIS_Type * p_reg, uint32_t pin) in nrf_spis_mosi_pin_set() argument 881 p_reg->PSELMOSI = pin; in nrf_spis_mosi_pin_set() 883 p_reg->PSEL.MOSI = pin; in nrf_spis_mosi_pin_set() [all …]
|
| D | nrf_spim.h | 738 NRF_STATIC_INLINE void nrf_spim_sck_pin_set(NRF_SPIM_Type * p_reg, uint32_t pin); 746 NRF_STATIC_INLINE void nrf_spim_mosi_pin_set(NRF_SPIM_Type * p_reg, uint32_t pin); 754 NRF_STATIC_INLINE void nrf_spim_miso_pin_set(NRF_SPIM_Type * p_reg, uint32_t pin); 798 uint32_t pin, 1309 NRF_STATIC_INLINE void nrf_spim_sck_pin_set(NRF_SPIM_Type * p_reg, uint32_t pin) in nrf_spim_sck_pin_set() argument 1311 p_reg->PSEL.SCK = pin; in nrf_spim_sck_pin_set() 1314 NRF_STATIC_INLINE void nrf_spim_mosi_pin_set(NRF_SPIM_Type * p_reg, uint32_t pin) in nrf_spim_mosi_pin_set() argument 1316 p_reg->PSEL.MOSI = pin; in nrf_spim_mosi_pin_set() 1319 NRF_STATIC_INLINE void nrf_spim_miso_pin_set(NRF_SPIM_Type * p_reg, uint32_t pin) in nrf_spim_miso_pin_set() argument 1321 p_reg->PSEL.MISO = pin; in nrf_spim_miso_pin_set() [all …]
|
| D | nrf_pdm.h | 445 NRF_STATIC_INLINE void nrf_pdm_clk_pin_set(NRF_PDM_Type * p_reg, uint32_t pin); 453 NRF_STATIC_INLINE void nrf_pdm_din_pin_set(NRF_PDM_Type * p_reg, uint32_t pin); 682 NRF_STATIC_INLINE void nrf_pdm_clk_pin_set(NRF_PDM_Type * p_reg, uint32_t pin) in nrf_pdm_clk_pin_set() argument 684 p_reg->PSEL.CLK = pin; in nrf_pdm_clk_pin_set() 687 NRF_STATIC_INLINE void nrf_pdm_din_pin_set(NRF_PDM_Type * p_reg, uint32_t pin) in nrf_pdm_din_pin_set() argument 689 p_reg->PSEL.DIN = pin; in nrf_pdm_din_pin_set()
|
| D | nrf_twis.h | 398 NRF_STATIC_INLINE void nrf_twis_scl_pin_set(NRF_TWIS_Type * p_reg, uint32_t pin); 415 NRF_STATIC_INLINE void nrf_twis_sda_pin_set(NRF_TWIS_Type * p_reg, uint32_t pin); 788 NRF_STATIC_INLINE void nrf_twis_scl_pin_set(NRF_TWIS_Type * p_reg, uint32_t pin) in nrf_twis_scl_pin_set() argument 790 p_reg->PSEL.SCL = pin; in nrf_twis_scl_pin_set() 798 NRF_STATIC_INLINE void nrf_twis_sda_pin_set(NRF_TWIS_Type * p_reg, uint32_t pin) in nrf_twis_sda_pin_set() argument 800 p_reg->PSEL.SDA = pin; in nrf_twis_sda_pin_set()
|
| D | nrf_gpiote.h | 475 uint32_t pin, 528 uint32_t pin, 835 uint32_t pin, in nrf_gpiote_event_configure() argument 839 p_reg->CONFIG[idx] |= ((pin << GPIOTE_CONFIG_PSEL_Pos) & GPIOTE_CONFIG_PORT_PIN_Msk) | in nrf_gpiote_event_configure() 880 uint32_t pin, in nrf_gpiote_task_configure() argument 888 p_reg->CONFIG[idx] |= ((pin << GPIOTE_CONFIG_PSEL_Pos) & GPIOTE_CONFIG_PORT_PIN_Msk) | in nrf_gpiote_task_configure()
|
| D | nrf_twim.h | 472 NRF_STATIC_INLINE void nrf_twim_scl_pin_set(NRF_TWIM_Type * p_reg, uint32_t pin); 480 NRF_STATIC_INLINE void nrf_twim_sda_pin_set(NRF_TWIM_Type * p_reg, uint32_t pin); 886 NRF_STATIC_INLINE void nrf_twim_scl_pin_set(NRF_TWIM_Type * p_reg, uint32_t pin) in nrf_twim_scl_pin_set() argument 888 p_reg->PSEL.SCL = pin; in nrf_twim_scl_pin_set() 891 NRF_STATIC_INLINE void nrf_twim_sda_pin_set(NRF_TWIM_Type * p_reg, uint32_t pin) in nrf_twim_sda_pin_set() argument 893 p_reg->PSEL.SDA = pin; in nrf_twim_sda_pin_set()
|
| /hal_nordic-latest/nrfx/samples/src/nrfx_gppi/fork/ |
| D | README.md | 18 …ay that sets up the TIMER COMPARE event to be forwarded via PPI/DPPI to GPIOTE and to toggle a pin. 19 Fork mechanism in PPI/DPPI is also set up to simultaneously toggle a second pin in GPIOTE. 42 - "GPIOTE output pin .primary.: <LED1_PIN> is low" 43 - "GPIOTE output pin .fork.: <LED2_PIN> is high" 45 - "GPIOTE output pin .primary.: <LED1_PIN> is high" 46 - "GPIOTE output pin .fork.: <LED2_PIN> is low" 49 > In the output, instead of `<LED1_PIN>` and `<LED2_PIN>`, you should see the corresponding pin num…
|
| /hal_nordic-latest/nrfx/haly/ |
| D | nrfy_i2s.h | 420 uint32_t pin = nrf_i2s_sck_pin_get(p_reg); in nrfy_i2s_sck_pin_get() local 422 return pin; in nrfy_i2s_sck_pin_get() 429 uint32_t pin = nrf_i2s_lrck_pin_get(p_reg); in nrfy_i2s_lrck_pin_get() local 431 return pin; in nrfy_i2s_lrck_pin_get() 438 uint32_t pin = nrf_i2s_mck_pin_get(p_reg); in nrfy_i2s_mck_pin_get() local 440 return pin; in nrfy_i2s_mck_pin_get() 447 uint32_t pin = nrf_i2s_sdout_pin_get(p_reg); in nrfy_i2s_sdout_pin_get() local 449 return pin; in nrfy_i2s_sdout_pin_get() 456 uint32_t pin = nrf_i2s_sdin_pin_get(p_reg); in nrfy_i2s_sdin_pin_get() local 458 return pin; in nrfy_i2s_sdin_pin_get()
|
| D | nrfy_spim.h | 590 uint32_t pin = nrf_spim_sck_pin_get(p_reg); in nrfy_spim_sck_pin_get() local 592 return pin; in nrfy_spim_sck_pin_get() 599 uint32_t pin = nrf_spim_mosi_pin_get(p_reg); in nrfy_spim_mosi_pin_get() local 601 return pin; in nrfy_spim_mosi_pin_get() 608 uint32_t pin = nrf_spim_miso_pin_get(p_reg); in nrfy_spim_miso_pin_get() local 610 return pin; in nrfy_spim_miso_pin_get() 617 uint32_t pin, in nrfy_spim_csn_configure() argument 621 nrf_spim_csn_configure(p_reg, pin, polarity, duration); in nrfy_spim_csn_configure() 629 uint32_t pin = nrf_spim_csn_pin_get(p_reg); in nrfy_spim_csn_pin_get() local 631 return pin; in nrfy_spim_csn_pin_get() [all …]
|
| D | nrfy_gpiote.h | 247 uint32_t pin, in nrfy_gpiote_event_configure() argument 250 nrf_gpiote_event_configure(p_reg, idx, pin, polarity); in nrfy_gpiote_event_configure() 258 uint32_t pin = nrf_gpiote_event_pin_get(p_reg, idx); in nrfy_gpiote_event_pin_get() local 260 return pin; in nrfy_gpiote_event_pin_get() 291 uint32_t pin, in nrfy_gpiote_task_configure() argument 295 nrf_gpiote_task_configure(p_reg, idx, pin, polarity, init_val); in nrfy_gpiote_task_configure()
|
| D | nrfy_uarte.h | 495 uint32_t pin = nrf_uarte_tx_pin_get(p_reg); in nrfy_uarte_tx_pin_get() local 497 return pin; in nrfy_uarte_tx_pin_get() 504 uint32_t pin = nrf_uarte_rx_pin_get(p_reg); in nrfy_uarte_rx_pin_get() local 506 return pin; in nrfy_uarte_rx_pin_get() 513 uint32_t pin = nrf_uarte_rts_pin_get(p_reg); in nrfy_uarte_rts_pin_get() local 515 return pin; in nrfy_uarte_rts_pin_get() 522 uint32_t pin = nrf_uarte_cts_pin_get(p_reg); in nrfy_uarte_cts_pin_get() local 524 return pin; in nrfy_uarte_cts_pin_get()
|
| D | nrfy_gpio.h | 186 uint32_t pin = nrf_gpio_pin_read(pin_number); in nrfy_gpio_pin_read() local 188 return pin; in nrfy_gpio_pin_read() 195 uint32_t pin = nrf_gpio_pin_out_read(pin_number); in nrfy_gpio_pin_out_read() local 197 return pin; in nrfy_gpio_pin_out_read()
|
| /hal_nordic-latest/nrfx/samples/src/nrfx_gppi/one_to_one/ |
| D | README.md | 19 …ay that sets up the TIMER COMPARE event to be forwarded via PPI/DPPI to GPIOTE and to toggle a pin. 42 - "GPIOTE output pin: <LED1_PIN> is low" 44 - "GPIOTE output pin: <LED1_PIN> is high" 47 > In the output, instead of `<LED1_PIN>`, you should see the corresponding pin numbers defined in `…
|