cMicroOrp  1.0.0
C code for microcontrollers - provides ORP remote interface
orp.h
Go to the documentation of this file.
1 /*
2 Copyright <2020> <J Thompson>
3 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
5 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6 */
7 
8 #ifndef ORP_H
9 #define ORP_H
10 
11 #define DEBUG
12 
13 #include "debug.h"
14 
15 #include <stddef.h>
16 #include <stdint.h>
17 #include <stdbool.h>
18 #include <ctype.h>
19 
20 #include "crcccitt.h"
21 #include "hdlc.h"
22 #include "orp_protocol.h"
23 #include "orp_input.h"
24 #include "orp_output.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 /*
31  *Notes*
32 
33  Due to the handshake method and lack of message context over ORP
34  The remote orp is going to have to respond busy if already waitng for
35  a response from the Octave Edge. This applies to
36  1. Octave inputs
37  2. Octave registration - this may need to block while the process completes
38  or maybe return with a request to call again or maybe we attach a timer
39  to drive a statemachine
40 
41 
42  We need to be careful with Octave ORP remote stream registration
43  The current 2020-03 versions of Octave Edge remote have volatile
44  registration. This means that if the Octave Edge Device resets
45  but the remote does not then the remote will need to
46  re-register
47 */
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif // ORP_H
hdlc.h
crcccitt.h
orp_input.h
orp_output.h
orp_protocol.h
debug.h