Home
last modified time | relevance | path

Searched refs:frequency (Results 1 – 20 of 20) sorted by relevance

/hal_nordic-3.5.0/nrfx/drivers/src/
Dnrfx_spim.c261 pin_drive = (p_config->frequency == NRFX_MHZ_TO_HZ(32)) ? NRF_GPIO_PIN_H0H1 : NRF_GPIO_PIN_S0S1; in configure_pins()
289 static bool spim_frequency_valid_check(nrfx_spim_t const * p_instance, uint32_t frequency) in spim_frequency_valid_check() argument
292 switch (frequency) in spim_frequency_valid_check()
321 static nrf_spim_frequency_t spim_frequency_bit_decode(uint32_t frequency) in spim_frequency_bit_decode() argument
323 switch (frequency) in spim_frequency_bit_decode()
353 static bool spim_frequency_valid_check(nrfx_spim_t const * p_instance, uint32_t frequency) in spim_frequency_valid_check() argument
356 uint32_t prescaler = NRF_SPIM_PRESCALER_CALCULATE(p_instance->p_reg, frequency); in spim_frequency_valid_check()
358 return (base_frequency % frequency == 0) && in spim_frequency_valid_check()
364 static uint32_t spim_prescaler_calculate(nrfx_spim_t const * p_instance, uint32_t frequency) in spim_prescaler_calculate() argument
366 return NRF_SPIM_PRESCALER_CALCULATE(p_instance->p_reg, frequency); in spim_prescaler_calculate()
[all …]
Dnrfx_timer.c62 #define TIMER_FREQUENCY_VALID_CHECK(p_instance, frequency) \ argument
63 ((NRF_TIMER_BASE_FREQUENCY_GET(p_instance->p_reg) % (frequency) == 0) && \
64 NRFX_IS_POWER_OF_TWO(NRF_TIMER_BASE_FREQUENCY_GET(p_instance->p_reg) / (frequency)) && \
65 ((NRF_TIMER_BASE_FREQUENCY_GET(p_instance->p_reg) / (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()
Dnrfx_twim.c198 .frequency = p_config->frequency, in twim_configure()
214 if (p_config->frequency >= NRF_TWIM_FREQ_1000K) in pins_configure()
302 p_cb->bus_frequency = (nrf_twim_frequency_t)p_config->frequency; in nrfx_twim_init()
Dnrfx_spi.c124 nrf_spi_frequency_set(p_instance->p_reg, p_config->frequency); in spi_configure()
Dnrfx_twi.c166 nrf_twi_frequency_set(p_instance->p_twi, p_config->frequency); in twi_configure()
/hal_nordic-3.5.0/nrfx/hal/
Dnrf_timer.h218 #define NRF_TIMER_PRESCALER_CALCULATE(base_freq, frequency) \ argument
219 NRF_CTZ((uint32_t)(base_freq) / (uint32_t)(frequency))
229 #define NRF_TIMER_FREQUENCY_STATIC_CHECK(p_reg, frequency) \ argument
231 (NRF_TIMER_BASE_FREQUENCY_GET(p_reg) == frequency) || \
232 ((NRF_TIMER_BASE_FREQUENCY_GET(p_reg) % frequency == 0) && \
233 NRFX_IS_POWER_OF_TWO(NRF_TIMER_BASE_FREQUENCY_GET(p_reg) / (uint32_t)frequency) && \
234 ((NRF_TIMER_BASE_FREQUENCY_GET(p_reg) / frequency) <= (1 << NRF_TIMER_PRESCALER_MAX))))
697 nrf_timer_frequency_t frequency);
709 nrf_timer_frequency_t frequency);
906 nrf_timer_frequency_t frequency) in nrf_timer_us_to_ticks() argument
[all …]
Dnrf_spim.h234 #define NRF_SPIM_PRESCALER_CALCULATE(p_reg, frequency) \ argument
235 ((uint32_t)(NRF_SPIM_BASE_FREQUENCY_GET(p_reg)) / (uint32_t)(frequency))
246 #define NRF_SPIM_FREQUENCY_STATIC_CHECK(p_reg, frequency) \ argument
249 ((NRF_SPIM_BASE_FREQUENCY_GET(p_reg) % (uint32_t)frequency == 0) && \
250 (NRFX_IS_EVEN(NRF_SPIM_PRESCALER_CALCULATE(p_reg, (uint32_t)frequency))) && \
251 (NRF_SPIM_PRESCALER_CALCULATE(p_reg, (uint32_t)frequency) >= (NRF_SPIM_PRESCALER_MIN)) && \
252 (NRF_SPIM_PRESCALER_CALCULATE(p_reg, (uint32_t)frequency) <= (NRF_SPIM_PRESCALER_MAX))) \
254 (((uint32_t)frequency == (uint32_t)NRFX_KHZ_TO_HZ(125)) || \
255 ((uint32_t)frequency == (uint32_t)NRFX_KHZ_TO_HZ(250)) || \
256 ((uint32_t)frequency == (uint32_t)NRFX_KHZ_TO_HZ(500)) || \
[all …]
Dnrf_spi.h252 nrf_spi_frequency_t frequency);
376 nrf_spi_frequency_t frequency) in nrf_spi_frequency_set() argument
378 p_reg->FREQUENCY = (uint32_t)frequency; in nrf_spi_frequency_set()
Dnrf_twi.h273 nrf_twi_frequency_t frequency);
428 nrf_twi_frequency_t frequency) in nrf_twi_frequency_set() argument
430 p_reg->FREQUENCY = frequency; in nrf_twi_frequency_set()
Dnrf_twim.h438 nrf_twim_frequency_t frequency);
756 nrf_twim_frequency_t frequency) in nrf_twim_frequency_set() argument
758 p_reg->FREQUENCY = frequency; in nrf_twim_frequency_set()
/hal_nordic-3.5.0/nrfx/drivers/include/
Dnrfx_spim.h98 uint32_t frequency; ///< SPIM frequency in Hz. member
159 .frequency = NRFX_MHZ_TO_HZ(4), \
176 #define NRFX_SPIM_FREQUENCY_STATIC_CHECK(id, frequency) \ argument
177 NRF_SPIM_FREQUENCY_STATIC_CHECK(NRF_SPIM_INST_GET(id), frequency)
Dnrfx_timer.h80 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)
Dnrfx_spi.h106 nrf_spi_frequency_t frequency; ///< SPI frequency. member
149 .frequency = NRF_SPI_FREQ_4M, \
Dnrfx_twim.h79 nrf_twim_frequency_t frequency; ///< TWIM frequency. member
112 .frequency = NRF_TWIM_FREQ_100K, \
Dnrfx_twi.h81 nrf_twi_frequency_t frequency; ///< TWI frequency. member
114 .frequency = NRF_TWI_FREQ_100K, \
/hal_nordic-3.5.0/nrfx/haly/
Dnrfy_twim.h85 nrf_twim_frequency_t frequency; ///< TWIM frequency. member
117 nrf_twim_frequency_set(p_reg, p_config->frequency); in nrfy_twim_periph_configure()
576 nrf_twim_frequency_t frequency) in nrfy_twim_frequency_set() argument
578 nrf_twim_frequency_set(p_reg, frequency); in nrfy_twim_frequency_set()
Dnrfy_spim.h183 nrf_spim_frequency_t frequency; ///< SPIM frequency. member
221 nrf_spim_frequency_set(p_reg, p_config->frequency); in nrfy_spim_periph_configure()
713 nrf_spim_frequency_t frequency) in nrfy_spim_frequency_set() argument
715 nrf_spim_frequency_set(p_reg, frequency); in nrfy_spim_frequency_set()
/hal_nordic-3.5.0/nrfx/samples/src/nrfx_timer/counter/
Dmain.c143 config.frequency = NRF_TIMER_BASE_FREQUENCY_GET(timer_c_inst.p_reg); in main()
/hal_nordic-3.5.0/nrfx/
DCHANGELOG.md28 - Added the NRFX_TIMER_FREQUENCY_STATIC_CHECK() macro to statically check if the given frequency is…
30 - Added auxiliary macros NRFX_KHZ_TO_HZ() and NRFX_MHZ_TO_HZ() for converting specified frequency v…
52frequency from an enumeration to an unsigned integer in the TIMER driver. Now the timer clock freq…
53frequency from an enumeration to an unsigned integer in the SPIM driver. Now the clock signal freq…
54 …DEFAULT_CONFIG() macro in the TIMER driver. Now the desired timer clock frequency in Hertz needs t…
92 …LCULATE() macro for computing prescaler value for given TIMER base frequency and desired frequency.
93 - Introduced the NRF_TIMER_BASE_FREQUENCY_GET() macro for getting base frequency in Hz for the spec…
132 - Improved management of low frequency clock source during initialization in the CLOCK driver. Comp…
270 - Added support for 1-MHz clock frequency in TWIM.
290 - Changed names of the frequency divider symbols in the QSPI HAL to reflect the new frequencies in …
[all …]
/hal_nordic-3.5.0/nrfx/samples/src/nrfx_saadc/maximum_performance/
DREADME.md20 Sampling is performed at the highest supported frequency.