MeterLogger
Macros
def.h File Reference
#include "lwip/arch.h"
#include "lwip/opt.h"
Include dependency graph for def.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LWIP_MAX(x, y)   (((x) > (y)) ? (x) : (y))
 
#define LWIP_MIN(x, y)   (((x) < (y)) ? (x) : (y))
 
#define NULL   ((void *)0)
 
#define LWIP_U32_DIFF(a, b)   (((a) >= (b)) ? ((a) - (b)) : (((a) + ((b) ^ 0xFFFFFFFF) + 1)))
 
#define LWIP_MAKE_U16(a, b)   ((a << 8) | b)
 
#define LWIP_PLATFORM_BYTESWAP   0
 
#define htons(x)   lwip_htons(x)
 
#define ntohs(x)   lwip_ntohs(x)
 
#define htonl(x)   lwip_htonl(x)
 
#define ntohl(x)   lwip_ntohl(x)
 
#define lwip_htons(x)   (x)
 
#define lwip_ntohs(x)   (x)
 
#define lwip_htonl(x)   (x)
 
#define lwip_ntohl(x)   (x)
 
#define PP_HTONS(x)   (x)
 
#define PP_NTOHS(x)   (x)
 
#define PP_HTONL(x)   (x)
 
#define PP_NTOHL(x)   (x)
 

Macro Definition Documentation

◆ htonl

#define htonl (   x)    lwip_htonl(x)

◆ htons

#define htons (   x)    lwip_htons(x)

◆ lwip_htonl

#define lwip_htonl (   x)    (x)

Definition at line 90 of file def.h.

◆ lwip_htons

#define lwip_htons (   x)    (x)

Definition at line 88 of file def.h.

◆ LWIP_MAKE_U16

#define LWIP_MAKE_U16 (   a,
 
)    ((a << 8) | b)

Definition at line 56 of file def.h.

Referenced by ip_output_if().

◆ LWIP_MAX

#define LWIP_MAX (   x,
 
)    (((x) > (y)) ? (x) : (y))

Definition at line 43 of file def.h.

◆ LWIP_MIN

#define LWIP_MIN (   x,
 
)    (((x) < (y)) ? (x) : (y))

Definition at line 44 of file def.h.

Referenced by pbuf_alloc().

◆ lwip_ntohl

#define lwip_ntohl (   x)    (x)

Definition at line 91 of file def.h.

◆ lwip_ntohs

#define lwip_ntohs (   x)    (x)

Definition at line 89 of file def.h.

◆ LWIP_PLATFORM_BYTESWAP

#define LWIP_PLATFORM_BYTESWAP   0

Definition at line 62 of file def.h.

◆ LWIP_U32_DIFF

#define LWIP_U32_DIFF (   a,
 
)    (((a) >= (b)) ? ((a) - (b)) : (((a) + ((b) ^ 0xFFFFFFFF) + 1)))

Get the absolute difference between 2 u32_t values (correcting overflows) 'a' is expected to be 'higher' (without overflow) than 'b'.

Definition at line 52 of file def.h.

◆ ntohl

#define ntohl (   x)    lwip_ntohl(x)

Definition at line 84 of file def.h.

◆ ntohs

#define ntohs (   x)    lwip_ntohs(x)

Definition at line 82 of file def.h.

Referenced by acl_check_packet(), ip_input(), and ip_output().

◆ NULL

#define NULL   ((void *)0)

Definition at line 47 of file def.h.

Referenced by ac_motor_valve_close(), ac_motor_valve_open(), ac_off(), ac_pwm_timer_func(), ac_test(), ac_thermo_pwm(), add_cron_job_from_query(), authBasic(), captdnsRecv(), cfg_save_defered(), cgiEspFsHook(), cgiEspFsTemplate(), cgiRedirect(), cgiSetup(), cgiWiFiScan(), cgiWifiSetMode(), cleanup_decimal_str(), compress_and_expand_and_check(), config_save_timer_func(), cron_init(), decode(), decoder_alloc_should_reject_excessively_small_window(), decoder_alloc_should_reject_zero_byte_input_buffer(), decoder_finish_should_reject_null_input(), decoder_poll_should_reject_null_hsd(), decoder_poll_should_reject_null_output_buffer(), decoder_poll_should_reject_null_output_size_pointer(), decoder_sink_should_reject_null_count_pointer(), decoder_sink_should_reject_null_hsd_pointer(), decoder_sink_should_reject_null_input_pointer(), dhcps_coarse_tmr(), dhcps_get_mapping(), dhcps_set_mapping(), dhcps_start(), dhcps_stop(), en61107_receive_timeout_timer_func(), en61107_request_send(), en61107_uart_send_en61107(), en61107_uart_send_en61107_ident(), en61107_uart_send_inst_values(), en61107_uart_send_standard_data_1(), en61107_uart_send_standard_data_2(), encode(), encoder_alloc_should_reject_invalid_arguments(), encoder_finish_should_reject_nulls(), encoder_poll_should_reject_nulls(), encoder_sink_should_reject_nulls(), espconn_abort(), espconn_accept(), espconn_clear_opt(), espconn_client_close(), espconn_client_connect(), espconn_client_err(), espconn_client_recv(), espconn_connect(), espconn_create(), espconn_data_sent(), espconn_data_sentcb(), espconn_delete(), espconn_disconnect(), espconn_find_connection(), espconn_find_current_pcb(), espconn_get_acticve_num(), espconn_get_connection_info(), espconn_get_keepalive(), espconn_get_packet_info(), espconn_kill_oldest(), espconn_kill_oldest_pcb(), espconn_kill_pcb(), espconn_list_creat(), espconn_list_delete(), espconn_pbuf_create(), espconn_pbuf_delete(), espconn_recv_hold(), espconn_recv_unhold(), espconn_regist_connectcb(), espconn_regist_disconcb(), espconn_regist_reconcb(), espconn_regist_recvcb(), espconn_regist_sentcb(), espconn_regist_time(), espconn_regist_write_finish(), espconn_sendto(), espconn_sent(), espconn_server_close(), espconn_server_poll(), espconn_server_recv(), espconn_set_keepalive(), espconn_set_opt(), espconn_Task(), espconn_tcp_accept(), espconn_tcp_client(), espconn_tcp_delete(), espconn_tcp_disconnect(), espconn_tcp_disconnect_successful(), espconn_tcp_finish(), espconn_tcp_get_buf_count(), espconn_tcp_get_max_con_allow(), espconn_tcp_reconnect(), espconn_tcp_sent(), espconn_tcp_server(), espconn_tcp_set_buf_count(), espconn_tcp_set_max_con_allow(), espconn_tcp_write(), espconn_udp_disconnect(), espconn_udp_recv(), espconn_udp_sendto(), espconn_udp_sent(), espconn_udp_server(), espFsClose(), espFsOpen(), espFsRead(), esponn_server_err(), handle_dhcp(), handle_open(), handle_read(), heatshrink_decoder_alloc(), heatshrink_decoder_finish(), heatshrink_decoder_poll(), heatshrink_decoder_sink(), heatshrink_encoder_alloc(), heatshrink_encoder_finish(), heatshrink_encoder_poll(), heatshrink_encoder_sink(), httpdConnectCb(), httpdDisconCb(), httpdFindArg(), httpdFindConnData(), httpdGetMimetype(), httpdInit(), httpdParseHeader(), httpdReconCb(), httpdRecvCb(), httpdRetireConn(), httpdSendResp(), httpdSentCb(), httpdStop(), inet_chksum_pbuf(), inet_chksum_pseudo(), inet_chksum_pseudo_partial(), init_unix_time(), ip_input(), ip_output(), ip_output_if(), ip_route(), ip_router(), ipaddr_ntoa_r(), kill_oldest_dhcps_pool(), kmp_request_send(), labelToStr(), led_blink(), led_double_blink_timer_func(), led_pattern_a(), led_pattern_b(), led_pattern_c(), main(), mem_free(), mem_malloc(), mem_trim(), memp_free(), memp_init(), memp_malloc(), minute_timer_func(), mqtt_client_delete(), MQTT_DeleteClient(), mqtt_dns_found(), mqtt_get_publish_data(), mqtt_get_publish_topic(), mqtt_msg_connect(), mqtt_msg_publish(), mqtt_msg_subscribe(), mqtt_msg_unsubscribe(), mqtt_send_keepalive(), MQTT_Task(), mqtt_tcpclient_connect_cb(), mqtt_tcpclient_delete(), netif_add(), netif_find(), netif_init(), netif_remove(), netif_set_default(), netif_set_ipaddr(), netif_set_link_down(), node_insert_to_list(), node_remove_from_list(), parse_en61107_frame(), parse_mc66cde_inst_values_frame(), parse_mc66cde_standard_data_1_frame(), parse_mc66cde_standard_data_2_frame(), parse_msg(), patch_netif_ap(), pbuf_alloc(), pbuf_cat(), pbuf_clen(), pbuf_coalesce(), pbuf_copy(), pbuf_copy_partial(), pbuf_dechain(), pbuf_free(), pbuf_get_at(), pbuf_header(), pbuf_memcmp(), pbuf_realloc(), pbuf_ref(), pbuf_strstr(), pbuf_take(), PROTO_ParseByte(), PROTO_ParseRb(), RINGBUF_Init(), send_ack(), send_nak(), send_offer(), start_watchdog(), tcpip_callback_with_block(), tcpip_init(), tcpip_input(), tcpip_thread(), tplSetup(), watchdog_timer_func(), wifi_connect(), wifi_default(), wifi_reconnect_timer_func(), wifi_scan_done_cb(), wifi_scan_result_cb_unregister(), wifi_scan_timer_func(), wifi_softap_get_dhcps_lease(), wifi_softap_ip_config(), wifi_softap_set_dhcps_lease(), wifi_softap_set_dhcps_offer_option(), wifi_start_scan(), wifiScanDoneCb(), and wifiStartScan().

◆ PP_HTONL

#define PP_HTONL (   x)    (x)

Definition at line 94 of file def.h.

◆ PP_HTONS

#define PP_HTONS (   x)    (x)

Definition at line 92 of file def.h.

Referenced by ip_input(), and ip_router().

◆ PP_NTOHL

#define PP_NTOHL (   x)    (x)

Definition at line 95 of file def.h.

◆ PP_NTOHS

#define PP_NTOHS (   x)    (x)

Definition at line 93 of file def.h.

Referenced by ip_router().