fsfw-example-common/stm32h7/networking/app_dhcp.h

35 lines
838 B
C
Raw Normal View History

2021-07-12 21:21:03 +02:00
#ifndef BSP_STM32_STM32CUBEH7_BOARDS_NUCLEO_H743ZI_INC_APP_DHCP_H_
#define BSP_STM32_STM32CUBEH7_BOARDS_NUCLEO_H743ZI_INC_APP_DHCP_H_
#ifdef __cplusplus
extern "C" {
#endif
2021-07-13 09:15:36 +02:00
#include "lwipopts.h"
2021-07-12 21:21:03 +02:00
#if LWIP_DHCP == 1
2021-07-13 09:15:36 +02:00
#include "lwip/netif.h"
2021-07-12 21:21:03 +02:00
/* DHCP process states */
#define DHCP_OFF (uint8_t) 0
#define DHCP_START (uint8_t) 1
#define DHCP_WAIT_ADDRESS (uint8_t) 2
#define DHCP_ADDRESS_ASSIGNED (uint8_t) 3
#define DHCP_TIMEOUT (uint8_t) 4
#define DHCP_LINK_DOWN (uint8_t) 5
uint8_t get_dhcp_state();
void set_dhcp_state(uint8_t new_state);
void DHCP_Process(struct netif *netif);
void DHCP_Periodic_Handle(struct netif *netif);
#endif /* LWIP_DHCP == 1 */
#ifdef __cplusplus
}
#endif
#endif /* BSP_STM32_STM32CUBEH7_BOARDS_NUCLEO_H743ZI_INC_APP_DHCP_H_ */