Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_SerialTypes.h
Go to the documentation of this file.
1/*
2 * Author: Crownstone Team
3 * Copyright: Crownstone (https://crownstone.rocks)
4 * Date: Aug 18, 2022
5 * License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
6 */
7
8#pragma once
9
10#include <stdint.h>
11
17#define SERIAL_NONE 0
18#define SERIAL_READ_ONLY 1
19#define SERIAL_BYTE_PROTOCOL_ONLY 2
20#define SERIAL_FATAL 3
21#define SERIAL_ERROR 4
22#define SERIAL_WARN 5
23#define SERIAL_INFO 6
24#define SERIAL_DEBUG 7
25#define SERIAL_VERBOSE 8
26#define SERIAL_VERY_VERBOSE 9
27
28#define SERIAL_CRLF "\r\n"
29
30#ifndef SERIAL_VERBOSITY
31#error "You have to specify SERIAL_VERBOSITY"
32#define SERIAL_VERBOSITY SERIAL_NONE
33#endif
34
35typedef enum {
40
41typedef void (*serial_read_callback)(uint8_t val);
serial_enable_t
Definition: cs_SerialTypes.h:35
@ SERIAL_ENABLE_RX_ONLY
Definition: cs_SerialTypes.h:37
@ SERIAL_ENABLE_RX_AND_TX
Definition: cs_SerialTypes.h:38
@ SERIAL_ENABLE_NONE
Definition: cs_SerialTypes.h:36
void(* serial_read_callback)(uint8_t val)
Definition: cs_SerialTypes.h:41