Nordic Semiconductor nRF5 AirFuel SDK  version 2.2.0
simple_uart.c File Reference
#include <stdint.h>
#include "nrf.h"
#include "simple_uart.h"
#include "nrf_delay.h"
#include "nrf_gpio.h"

Go to the source code of this file.

Functions

uint8_t simple_uart_get (void)
 Function for reading a character from UART. Execution is blocked until UART peripheral detects character has been received. More...
 
bool simple_uart_get_with_timeout (int32_t timeout_ms, uint8_t *rx_data)
 Function for reading a character from UART with timeout on how long to wait for the byte to be received. Execution is blocked until UART peripheral detects character has been received or until the timeout expires, which even occurs first. More...
 
void simple_uart_put (uint8_t cr)
 Function for sending a character to UART. Execution is blocked until UART peripheral reports character to have been send. More...
 
void simple_uart_putstring (const uint8_t *str)
 Function for sending a string to UART. Execution is blocked until UART peripheral reports all characters to have been send. Maximum string length is 254 characters including null character in the end. More...
 
void simple_uart_config (uint32_t baudrate, uint8_t rts_pin_number, uint8_t txd_pin_number, uint8_t cts_pin_number, uint8_t rxd_pin_number, bool hwfc)
 UART configuration. More...