WebRadioApp  0.1
Collaboration diagram for NTPUDP:

Functions

void uhrzeit_anpassung (void)
 
void NTP_init (void)
 
void sendNTP (ip_addr_t *ipaddr)
 
void NTP_Data_Conversion (void)
 
void RecvNTPCallBack (void *arg, struct udp_pcb *upcb, struct pbuf *p, const ip_addr_t *addr, u16_t port)
 
void TCP_init (void)
 

Variables

const int timezone = 1
 
UART_HandleTypeDef huart3
 
int NTPsendreqs
 
int NTPrecvs
 
static struct tm zeit
 
char data [48]
 
int data_arrived = 0
 
int travel_ms
 
const uint8_t EST []
 
volatile uint64_t MS_TIME
 
volatile uint64_t MS_TIMER1
 
int ntpsyncd
 
volatile int XTAL_Sec
 
volatile int XTAL_Min
 
volatile int XTAL_Hour
 
volatile int XTAL_Day
 
volatile int XTAL_Month
 
volatile int XTAL_Year
 
volatile int XTAL_Weekday
 
volatile int Leap_year
 
volatile int XTAL_MESZ
 
volatile int First_XTAL_Min
 
volatile int First_XTAL_Hour
 
volatile int XTAL_MSEC
 
struct pbuf * p
 
struct udp_pcb * upcb1
 

Detailed Description

Function Documentation

◆ NTP_Data_Conversion()

void NTP_Data_Conversion ( void  )

References data, data_arrived, EST, First_XTAL_Hour, First_XTAL_Min, NTPrecvs, ntpsyncd, offtime(), timezone, travel_ms, uhrzeit_anpassung(), XTAL_Day, XTAL_Hour, XTAL_MESZ, XTAL_Min, XTAL_Month, XTAL_MSEC, XTAL_Sec, XTAL_Weekday, XTAL_Year, and zeit.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ NTP_init()

void NTP_init ( void  )

References err, RecvNTPCallBack(), and upcb1.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RecvNTPCallBack()

void RecvNTPCallBack ( void arg,
struct udp_pcb *  upcb,
struct pbuf *  p,
const ip_addr_t *  addr,
u16_t  port 
)

References data, data_arrived, MS_TIMER1, NTP_Data_Conversion(), p, travel_ms, and XTAL_MSEC.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendNTP()

void sendNTP ( ip_addr_t *  ipaddr)

References data_arrived, err, ipaddr, MS_TIMER1, p, RecvNTPCallBack(), and upcb1.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TCP_init()

void TCP_init ( void  )

◆ uhrzeit_anpassung()

void uhrzeit_anpassung ( void  )

References Leap_year, XTAL_Day, XTAL_Hour, XTAL_Min, XTAL_Month, and XTAL_Year.

Here is the caller graph for this function:

Variable Documentation

◆ data

char data[48]

◆ data_arrived

int data_arrived = 0

◆ EST

const uint8_t EST

◆ First_XTAL_Hour

volatile int First_XTAL_Hour

◆ First_XTAL_Min

volatile int First_XTAL_Min

◆ huart3

UART_HandleTypeDef huart3

◆ Leap_year

volatile int Leap_year

◆ MS_TIME

volatile uint64_t MS_TIME

◆ MS_TIMER1

volatile uint64_t MS_TIMER1

Detailed description after the member

◆ NTPrecvs

int NTPrecvs

◆ NTPsendreqs

int NTPsendreqs

◆ ntpsyncd

int ntpsyncd

◆ p

struct pbuf* p

◆ timezone

const int timezone = 1

◆ travel_ms

int travel_ms

◆ upcb1

struct udp_pcb* upcb1

◆ XTAL_Day

volatile int XTAL_Day

◆ XTAL_Hour

volatile int XTAL_Hour

◆ XTAL_MESZ

volatile int XTAL_MESZ

◆ XTAL_Min

volatile int XTAL_Min

◆ XTAL_Month

volatile int XTAL_Month

◆ XTAL_MSEC

volatile int XTAL_MSEC

◆ XTAL_Sec

volatile int XTAL_Sec

◆ XTAL_Weekday

volatile int XTAL_Weekday

◆ XTAL_Year

volatile int XTAL_Year

◆ zeit

struct tm zeit
static