-
Notifications
You must be signed in to change notification settings - Fork 0
/
DragonNETMaster.h
47 lines (34 loc) · 934 Bytes
/
DragonNETMaster.h
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* DragonNETMaster.h
* Class of functions of a master device.
*
* @author Nikolai Tikhonov aka Dragon_Knight <[email protected]>, https://vk.com/globalzone_edev
* @coauthor Valeriy V Dmitriev aka valmat <[email protected]>
* @licenses MIT https://opensource.org/licenses/MIT
* @repo https://github.com/Dragon-Knight/DragonNET
*/
#ifndef DragonNETMaster_h_
#define DragonNETMaster_h_
class DragonNETMaster : public DragonNETCore
{
public:
DragonNETMaster(UART &serial, uint8_t directionPin) : DragonNETCore(serial, directionPin)
{
this->_configByte = 0b01000000;
return;
}
DragonNETMaster(UART &&serial, uint8_t directionPin) = delete;
void Processing(uint32_t currentMicroTime = micros())
{
this->ReceivePackage(currentMicroTime);
return;
}
void Send(DragonNETPacket_t packet)
{
this->TransmitPackage(packet);
return;
}
protected:
private:
};
#endif