LIN_master  0.1
Arduino LIN master emulation with preemptive background operation
LIN_master2.h
Go to the documentation of this file.
1 
11 /*-----------------------------------------------------------------------------
12  MODULE DEFINITION FOR MULTIPLE INCLUSION
13 -----------------------------------------------------------------------------*/
14 #ifndef _LIN_MASTER2_H_
15 #define _LIN_MASTER2_H_
16 
17 // only compile if controller supports Serial2
18 #if defined(HAVE_HWSERIAL2) || defined(SERIAL_PORT_HARDWARE2)
19 
20 
21 /*-----------------------------------------------------------------------------
22  INCLUDE FILES
23 -----------------------------------------------------------------------------*/
24 
25 // include required libraries
26 #include "Arduino.h"
27 #include "LIN_master.h"
28 
29 
30 /*-----------------------------------------------------------------------------
31  GLOBAL CLASS
32 -----------------------------------------------------------------------------*/
38 class LIN_Master_2 : public LIN_Master
39 {
40  public:
41 
42  // public methods
43  LIN_Master_2();
44 };
45 
46 // external reference to LIN_master2
48 
50 void LIN_master2_send(void);
51 
53 void LIN_master2_receive(void);
54 
56 void LIN_master2_copy(uint8_t numData, uint8_t *data);
57 
58 #endif // HAVE_HWSERIAL2 || SERIAL_PORT_HARDWARE2
59 
60 /*-----------------------------------------------------------------------------
61  END OF MODULE DEFINITION FOR MULTIPLE INLUSION
62 -----------------------------------------------------------------------------*/
63 #endif // _LIN_MASTER2_H_
void LIN_master2_send(void)
Wrapper for LIN_master2 transmission handler.
Definition: LIN_master2.cpp:51
LIN master node class.
Definition: LIN_master2.h:38
void LIN_master2_copy(uint8_t numData, uint8_t *data)
Wrapper for LIN_master2 default receive callback function.
Definition: LIN_master2.cpp:79
Base class for LIN master emulation.
void LIN_master2_receive(void)
Wrapper for LIN_master2 reception handler.
Definition: LIN_master2.cpp:65
LIN master node base class.
Definition: LIN_master.h:104
LIN_Master_2 LIN_master2
instance of LIN master via Serial2
Definition: LIN_master2.cpp:17
LIN_Master_2()
class constructor
Definition: LIN_master2.cpp:24