47 "Simple wind monitor",
48 "1.2.0.24 (2022-10-01)",
49 "1.2.0.0 (2022-10-01)"
This File contains all SetXXX functions which will be needed to transfer data with a specific PGN.
double DegToRad(double v)
Converting a value from Deg to Rad.
@ N2kWind_Apprent
Deprecated - We had the typo in older version of the library.
Automatic library selection according to the selected board.
tN2kSyncScheduler WindScheduler(false, 100, 500)
const unsigned long TransmitMessages[]
This class contains all the data of an NMEA2000 message.
Synchronized Scheduler for timed message sending.
bool IsTime()
Check if ít is time.
void UpdateNextTime()
Update the timestamp for NextTime.
void SetProductInformation(const char *_ModelSerialCode, unsigned short _ProductCode=0xffff, const char *_ModelID=0, const char *_SwCode=0, const char *_ModelVersion=0, unsigned char _LoadEquivalency=0xff, unsigned short _N2kVersion=0xffff, unsigned char _CertificationLevel=0xff, int iDev=0)
Set the Product Information of this device.
void EnableForward(bool v=true)
Enable message forwarding to stream.
void ParseMessages()
Parse all incoming Messages.
void SetDeviceInformation(unsigned long _UniqueNumber, unsigned char _DeviceFunction=0xff, unsigned char _DeviceClass=0xff, uint16_t _ManufacturerCode=0xffff, unsigned char _IndustryGroup=4, int iDev=0)
Set the Device Information. See also NAME.
bool Open()
Open the CAN device.
bool SendMsg(const tN2kMsg &N2kMsg, int DeviceIndex=0)
Send message to the NMEA2000 bus.
void ExtendTransmitMessages(const unsigned long *_TransmitMessages, int iDev=0)
Extend the list of Transmitted Messages.
void SetOnOpen(void(*_OnOpen)())
Set OnOpen callback function.
void SetMode(tN2kMode _N2kMode, uint8_t _N2kSource=15)
Set the library mode and start source address.
void SetN2kWindSpeed(tN2kMsg &N2kMsg, unsigned char SID, double WindSpeed, double WindAngle, tN2kWindReference WindReference)
Setting up Message "Wind Data" - PGN 130306.