Lines Matching full:baudrate
126 /* uart120 instance does not retain BAUDRATE register when ENABLE=0. When this instance
127 * is used then baudrate must be set after enabling the peripheral and not before.
255 /* Macro for converting numerical baudrate to register value. It is convenient
259 #define NRF_BAUDRATE(baudrate) ((baudrate) == 300 ? 0x00014000 :\ argument
260 (baudrate) == 600 ? 0x00027000 : \
261 (baudrate) == 1200 ? NRF_UARTE_BAUDRATE_1200 : \
262 (baudrate) == 2400 ? NRF_UARTE_BAUDRATE_2400 : \
263 (baudrate) == 4800 ? NRF_UARTE_BAUDRATE_4800 : \
264 (baudrate) == 9600 ? NRF_UARTE_BAUDRATE_9600 : \
265 (baudrate) == 14400 ? NRF_UARTE_BAUDRATE_14400 : \
266 (baudrate) == 19200 ? NRF_UARTE_BAUDRATE_19200 : \
267 (baudrate) == 28800 ? NRF_UARTE_BAUDRATE_28800 : \
268 (baudrate) == 31250 ? NRF_UARTE_BAUDRATE_31250 : \
269 (baudrate) == 38400 ? NRF_UARTE_BAUDRATE_38400 : \
270 (baudrate) == 56000 ? NRF_UARTE_BAUDRATE_56000 : \
271 (baudrate) == 57600 ? NRF_UARTE_BAUDRATE_57600 : \
272 (baudrate) == 76800 ? NRF_UARTE_BAUDRATE_76800 : \
273 (baudrate) == 115200 ? NRF_UARTE_BAUDRATE_115200 : \
274 (baudrate) == 230400 ? NRF_UARTE_BAUDRATE_230400 : \
275 (baudrate) == 250000 ? NRF_UARTE_BAUDRATE_250000 : \
276 (baudrate) == 460800 ? NRF_UARTE_BAUDRATE_460800 : \
277 (baudrate) == 921600 ? NRF_UARTE_BAUDRATE_921600 : \
278 (baudrate) == 1000000 ? NRF_UARTE_BAUDRATE_1000000 : 0)
311 /* None-zero in case of high speed instances. Baudrate is adjusted by that ratio. */
315 uint32_t baudrate; member
483 * @param baudrate Baud rate
487 static int baudrate_set(const struct device *dev, uint32_t baudrate) in baudrate_set() argument
490 /* calculated baudrate divisor */ in baudrate_set()
491 nrf_uarte_baudrate_t nrf_baudrate = NRF_BAUDRATE(baudrate); in baudrate_set()
497 /* scale baudrate setting */ in baudrate_set()
571 if (baudrate_set(dev, cfg->baudrate) != 0) { in uarte_nrfx_configure()
992 static uint32_t us_to_bauds(uint32_t baudrate, int32_t timeout) in us_to_bauds() argument
994 uint64_t bauds = (uint64_t)baudrate * timeout / 1000000; in us_to_bauds()
1038 uint32_t baudrate = COND_CODE_1(CONFIG_UART_USE_RUNTIME_CONFIGURE, in uarte_nrfx_rx_enable() local
1039 (data->uart_config.baudrate), (cfg->baudrate)); in uarte_nrfx_rx_enable()
1042 nrf_uarte_frame_timeout_set(uarte, us_to_bauds(baudrate, timeout)); in uarte_nrfx_rx_enable()
2395 /* When calculating baudrate we need to take into account that high speed instances
2396 * must have baudrate adjust to the ratio between UARTE clocking frequency and 16 MHz.
2418 .baudrate = UARTE_PROP(idx, current_speed), \
2452 "Unsupported baudrate");)) \
2458 (.baudrate = UARTE_PROP(idx, current_speed),)) \