[AFSK] Added copy constructor
This commit is contained in:
parent
24f714b914
commit
99f1ad24b2
2 changed files with 12 additions and 0 deletions
|
@ -5,6 +5,11 @@ AFSKClient::AFSKClient(PhysicalLayer* phy, uint32_t pin): outPin(pin) {
|
||||||
phyLayer = phy;
|
phyLayer = phy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AFSKClient::AFSKClient(AFSKClient* aud) {
|
||||||
|
phyLayer = aud->phyLayer;
|
||||||
|
outPin = aud->outPin;
|
||||||
|
}
|
||||||
|
|
||||||
int16_t AFSKClient::begin() {
|
int16_t AFSKClient::begin() {
|
||||||
return(phyLayer->startDirect());
|
return(phyLayer->startDirect());
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,12 @@ class AFSKClient {
|
||||||
*/
|
*/
|
||||||
AFSKClient(PhysicalLayer* phy, uint32_t pin);
|
AFSKClient(PhysicalLayer* phy, uint32_t pin);
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\brief Copy contructor.
|
||||||
|
\param aud Pointer to the AFSKClient instance to copy.
|
||||||
|
*/
|
||||||
|
AFSKClient(AFSKClient* aud);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Initialization method.
|
\brief Initialization method.
|
||||||
\returns \ref status_codes
|
\returns \ref status_codes
|
||||||
|
@ -56,6 +62,7 @@ class AFSKClient {
|
||||||
friend class SSTVClient;
|
friend class SSTVClient;
|
||||||
friend class AX25Client;
|
friend class AX25Client;
|
||||||
friend class FSK4Client;
|
friend class FSK4Client;
|
||||||
|
friend class BellClient;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue