Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_Serial.h
Go to the documentation of this file.
1
7#pragma once
8
15#ifdef __cplusplus
16extern "C" {
17#endif
18
20#include <stdbool.h>
21#include <stdint.h>
22
28void serial_config(uint8_t pinRx, uint8_t pinTx);
29
35
40
45
50
55
59void serial_write(uint8_t val);
60
61#ifdef __cplusplus
62}
63#endif
serial_enable_t
Definition: cs_SerialTypes.h:35
void(* serial_read_callback)(uint8_t val)
Definition: cs_SerialTypes.h:41
serial_enable_t serial_get_state()
Get the state of the serial.
void serial_enable(serial_enable_t enabled)
Change what is enabled.
void serial_init(serial_enable_t enabled)
Init the UART.
void serial_write(uint8_t val)
Write a single byte.
void serial_config(uint8_t pinRx, uint8_t pinTx)
Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: 10 Oct....
bool serial_tx_ready()
Returns whether serial is ready for TX, and has it enabled.
void serial_set_read_callback(serial_read_callback callback)
Set the callback.