KM3NeT CLB  2.0
KM3NeT CLB v2 Embedded Software
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
uartbridge.h
1 /*
2  * KM3NeT CLB v2 Firmware
3  * ----------------------
4  *
5  * Copyright 2013 KM3NeT Collaboration
6  *
7  * All Rights Reserved.
8  *
9  *
10  * File : uartbridge.h
11  * Created : 3 dec. 2013
12  * Author : Vincent van Beveren
13  */
14 
15 #ifndef UARTBRIDGE_H_
16 #define UARTBRIDGE_H_
17 
18 #include <stdbool.h>
19 #include <stdio.h>
20 #include "net.h"
21 
22 
23 /**
24  * Stub function for receiving data. Should be implemented.
25  */
26 void _ubRx(SockAddr * addr, uint8_t * data, int len);
27 
28 /**
29  * Transmit function.
30  */
31 bool ubTx(SockAddr * addr, uint8_t * data, int len);
32 
33 /**
34  * Periodic processing (should be called in idle task).
35  */
36 void ubProcess();
37 
38 #endif /* UARTBRIDGE_H_ */
Combination of IP address and port.
Definition: net.h:31