| /hal_nordic-latest/nrfx/drivers/src/ |
| D | nrfx_spim.c | 286 pin_drive = (p_config->frequency == NRFX_MHZ_TO_HZ(32)) ? NRF_GPIO_PIN_H0H1 : NRF_GPIO_PIN_S0S1; in configure_pins() 317 static bool spim_frequency_valid_check(nrfx_spim_t const * p_instance, uint32_t frequency) in spim_frequency_valid_check() argument 320 switch (frequency) in spim_frequency_valid_check() 349 static nrf_spim_frequency_t spim_frequency_bit_decode(uint32_t frequency) in spim_frequency_bit_decode() argument 351 switch (frequency) in spim_frequency_bit_decode() 381 static bool spim_frequency_valid_check(nrfx_spim_t const * p_instance, uint32_t frequency) in spim_frequency_valid_check() argument 384 uint32_t prescaler = NRF_SPIM_PRESCALER_CALCULATE(p_instance->p_reg, frequency); in spim_frequency_valid_check() 386 return ((base_frequency % frequency) < prescaler) && in spim_frequency_valid_check() 392 static uint32_t spim_prescaler_calculate(nrfx_spim_t const * p_instance, uint32_t frequency) in spim_prescaler_calculate() argument 395 return NRF_SPIM_PRESCALER_CALCULATE(p_instance->p_reg, frequency); in spim_prescaler_calculate() [all …]
|
| D | nrfx_timer.c | 62 #define TIMER_FREQUENCY_VALID_CHECK(p_instance, frequency) \ argument 63 ((NRFX_TIMER_BASE_FREQUENCY_GET(p_instance) % (frequency) == 0) && \ 64 NRFX_IS_POWER_OF_TWO(NRFX_TIMER_BASE_FREQUENCY_GET(p_instance) / (frequency)) && \ 65 ((NRFX_TIMER_BASE_FREQUENCY_GET(p_instance) / (frequency)) <= \ 81 static uint32_t prescaler_calculate(nrfx_timer_t const * p_instance, uint32_t frequency) in prescaler_calculate() argument 86 if (!TIMER_FREQUENCY_VALID_CHECK(p_instance, frequency)) in prescaler_calculate() 90 return NRF_CTZ(base_frequency / frequency); in prescaler_calculate() 98 prescaler = prescaler_calculate(p_instance, p_config->frequency); in timer_configure()
|
| D | nrfx_twim.c | 198 .frequency = p_config->frequency, in twim_configure() 219 if (p_config->frequency >= NRF_TWIM_FREQ_1000K) in pins_configure() 320 p_cb->bus_frequency = (nrf_twim_frequency_t)p_config->frequency; in nrfx_twim_init()
|
| D | nrfx_spi.c | 124 nrf_spi_frequency_set(p_instance->p_reg, p_config->frequency); in spi_configure()
|
| D | nrfx_twi.c | 166 nrf_twi_frequency_set(p_instance->p_twi, p_config->frequency); in twi_configure()
|
| /hal_nordic-latest/nrfx/hal/ |
| D | nrf_timer.h | 281 #define NRF_TIMER_PRESCALER_CALCULATE(base_freq, frequency) \ argument 282 NRF_CTZ((uint32_t)(base_freq) / (uint32_t)(frequency)) 292 #define NRF_TIMER_FREQUENCY_STATIC_CHECK(p_reg, frequency) \ argument 294 (NRF_TIMER_BASE_FREQUENCY_GET(p_reg) == frequency) || \ 295 ((NRF_TIMER_BASE_FREQUENCY_GET(p_reg) % frequency == 0) && \ 296 NRFX_IS_POWER_OF_TWO(NRF_TIMER_BASE_FREQUENCY_GET(p_reg) / (uint32_t)frequency) && \ 297 ((NRF_TIMER_BASE_FREQUENCY_GET(p_reg) / frequency) <= (1 << NRF_TIMER_PRESCALER_MAX)))) 765 nrf_timer_frequency_t frequency); 777 nrf_timer_frequency_t frequency); 974 nrf_timer_frequency_t frequency) in nrf_timer_us_to_ticks() argument [all …]
|
| D | nrf_spim.h | 327 #define NRF_SPIM_PRESCALER_CALCULATE(p_reg, frequency) \ argument 328 ((uint32_t)(NRF_SPIM_BASE_FREQUENCY_GET(p_reg)) / (uint32_t)(frequency)) 339 #define NRF_SPIM_FREQUENCY_STATIC_CHECK(p_reg, frequency) … argument 342 …((NRF_SPIM_BASE_FREQUENCY_GET(p_reg) % (uint32_t)frequency == 0) && … 343 …(NRFX_IS_EVEN(NRF_SPIM_PRESCALER_CALCULATE(p_reg, (uint32_t)frequency))) && … 344 …(NRF_SPIM_PRESCALER_CALCULATE(p_reg, (uint32_t)frequency) >= (NRF_SPIM_PRESCALER_MIN_GET(p_reg))) … 345 …(NRF_SPIM_PRESCALER_CALCULATE(p_reg, (uint32_t)frequency) <= (NRF_SPIM_PRESCALER_MAX_GET(p_reg))))… 347 …(((uint32_t)frequency == (uint32_t)NRFX_KHZ_TO_HZ(125)) || … 348 …((uint32_t)frequency == (uint32_t)NRFX_KHZ_TO_HZ(250)) || … 349 …((uint32_t)frequency == (uint32_t)NRFX_KHZ_TO_HZ(500)) || … [all …]
|
| D | nrf_spi.h | 279 nrf_spi_frequency_t frequency); 430 nrf_spi_frequency_t frequency) in nrf_spi_frequency_set() argument 432 p_reg->FREQUENCY = (uint32_t)frequency; in nrf_spi_frequency_set()
|
| D | nrf_twi.h | 292 nrf_twi_frequency_t frequency); 465 nrf_twi_frequency_t frequency) in nrf_twi_frequency_set() argument 467 p_reg->FREQUENCY = frequency; in nrf_twi_frequency_set()
|
| D | nrf_twim.h | 507 nrf_twim_frequency_t frequency); 907 nrf_twim_frequency_t frequency) in nrf_twim_frequency_set() argument 909 p_reg->FREQUENCY = frequency; in nrf_twim_frequency_set()
|
| /hal_nordic-latest/nrfx/drivers/include/ |
| D | nrfx_spim.h | 98 uint32_t frequency; ///< SPIM frequency in Hz. member 159 .frequency = NRFX_MHZ_TO_HZ(4), \ 177 #define NRFX_SPIM_FREQUENCY_STATIC_CHECK(id, frequency) \ argument 178 NRF_SPIM_FREQUENCY_STATIC_CHECK(NRF_SPIM_INST_GET(id), frequency)
|
| D | nrfx_timer.h | 80 uint32_t frequency; ///< Frequency value. member 98 .frequency = _frequency, \ 113 #define NRFX_TIMER_FREQUENCY_STATIC_CHECK(id, frequency) \ argument 114 NRF_TIMER_FREQUENCY_STATIC_CHECK(NRF_TIMER_INST_GET(id), frequency)
|
| D | nrfx_spi.h | 106 nrf_spi_frequency_t frequency; ///< SPI frequency. member 149 .frequency = NRF_SPI_FREQ_4M, \
|
| D | nrfx_twi.h | 81 nrf_twi_frequency_t frequency; ///< TWI frequency. member 114 .frequency = NRF_TWI_FREQ_100K, \
|
| D | nrfx_twim.h | 79 nrf_twim_frequency_t frequency; ///< TWIM frequency. member 112 .frequency = NRF_TWIM_FREQ_100K, \
|
| /hal_nordic-latest/nrfx/haly/ |
| D | nrfy_twim.h | 86 nrf_twim_frequency_t frequency; ///< TWIM frequency. member 118 nrf_twim_frequency_set(p_reg, p_config->frequency); in nrfy_twim_periph_configure() 583 nrf_twim_frequency_t frequency) in nrfy_twim_frequency_set() argument 585 nrf_twim_frequency_set(p_reg, frequency); in nrfy_twim_frequency_set()
|
| D | nrfy_spim.h | 183 nrf_spim_frequency_t frequency; ///< SPIM frequency. member 228 nrf_spim_frequency_set(p_reg, p_config->frequency); in nrfy_spim_periph_configure() 708 nrf_spim_frequency_t frequency) in nrfy_spim_frequency_set() argument 710 nrf_spim_frequency_set(p_reg, frequency); in nrfy_spim_frequency_set()
|
| /hal_nordic-latest/nrfx/ |
| D | CHANGELOG.md | 89 - Fixed frequency symbol setting in case of non-secure build on the nRF54L15 SoC. 102 - Fixed 1 MHz clock frequency configuration setting in the TWIM driver. Now, the supported pins are… 213 - Added the NRFX_TIMER_FREQUENCY_STATIC_CHECK() macro to statically check if the given frequency is… 215 - Added auxiliary macros NRFX_KHZ_TO_HZ() and NRFX_MHZ_TO_HZ() for converting specified frequency v… 237 …frequency from an enumeration to an unsigned integer in the TIMER driver. Now the timer clock freq… 238 …frequency from an enumeration to an unsigned integer in the SPIM driver. Now the clock signal freq… 239 …DEFAULT_CONFIG() macro in the TIMER driver. Now the desired timer clock frequency in Hertz needs t… 277 …LCULATE() macro for computing prescaler value for given TIMER base frequency and desired frequency. 278 - Introduced the NRF_TIMER_BASE_FREQUENCY_GET() macro for getting base frequency in Hz for the spec… 317 - Improved management of low frequency clock source during initialization in the CLOCK driver. Comp… [all …]
|
| /hal_nordic-latest/nrfx/samples/src/nrfx_timer/counter/ |
| D | main.c | 150 config.frequency = NRF_TIMER_BASE_FREQUENCY_GET(timer_c_inst.p_reg); in main()
|
| /hal_nordic-latest/nrfx/samples/src/nrfx_saadc/maximum_performance/ |
| D | README.md | 20 Sampling is performed at the highest supported frequency.
|