blob: 88e50dbc25483b4b12fa9ba9b1741a9710f0a659 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef SERIAL_H
#define SERIAL_H
/* *************************************
* Includes
* *************************************/
#include <stdint.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C"
{
#endif
#define SERIAL_DATA_PACKET_SIZE 8
#define ACK_BYTE_STRING "b"
void SerialInit(void);
void SerialRead(uint8_t *ptrArray, size_t nBytes);
void SerialWrite(const void* ptrArray, size_t nBytes);
#ifdef SERIAL_INTERFACE
void Serial_printf(const char* str, ...);
#endif // SERIAL_INTERFACE
#ifdef __cplusplus
}
#endif
#endif /* SERIAL_H */
|