|
NetBurner 3.5.6
PDF Version |
#include <NTPServer.h>
Classes | |
| class | NtpTimeStamp |
Public Member Functions | |
| NTPServer (IEEE1588Timer &timer, GPSChip &gps, uint16_t port=123) | |
| bool | start () |
| void | stop () |
| bool | isRunning () const |
| uint16_t | getPort () const |
Static Public Member Functions | |
| static void | serverTask (void *param) |
NTPServer class - Encapsulates NTP server functionality
This class provides a complete NTP server implementation that uses IEEE1588Timer for precise timestamping and GPS synchronization. It handles NTP packet processing and response generation.
| NTPServer::NTPServer | ( | IEEE1588Timer & | timer, |
| GPSChip & | gps, | ||
| uint16_t | port = 123 ) |
Constructor
| timer | Reference to IEEE1588Timer for precise timestamping |
| gps | Reference to GPSChip for GPS synchronization status |
| port | NTP server port (default 123) |
|
inline |
Get server port
|
inline |
Get server running status
|
static |
Static task wrapper for RTOS
| param | Pointer to NTPServer instance |
| bool NTPServer::start | ( | ) |
Start the NTP server Registers UDP FIFO and creates server task
| void NTPServer::stop | ( | ) |
Stop the NTP server Cleanup method for future use