Microchip® Advanced Software Framework

lwip-1.4.0/src/include/lwip/def.h File Reference
#include "lwip/arch.h"
#include "lwip/opt.h"

Macros

#define htonl(x)   lwip_htonl(x)
 
#define htons(x)   lwip_htons(x)
 
#define lwip_htonl(x)   (x)
 
#define lwip_htons(x)   (x)
 
#define LWIP_MAKE_U16(a, b)   ((a << 8) | b)
 
#define LWIP_MAX(x, y)   (((x) > (y)) ? (x) : (y))
 
#define LWIP_MIN(x, y)   (((x) < (y)) ? (x) : (y))
 
#define lwip_ntohl(x)   (x)
 
#define lwip_ntohs(x)   (x)
 
#define LWIP_PLATFORM_BYTESWAP   0
 
#define LWIP_U32_DIFF(a, b)   (((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'. More...
 
#define ntohl(x)   lwip_ntohl(x)
 
#define ntohs(x)   lwip_ntohs(x)
 
#define NULL   ((void *)0)
 
#define PP_HTONL(x)   (x)
 
#define PP_HTONS(x)   (x)
 
#define PP_NTOHL(x)   (x)
 
#define PP_NTOHS(x)   (x)
 

#define htonl (   x)    lwip_htonl(x)
#define htons (   x)    lwip_htons(x)

Referenced by wlif_input().

#define lwip_htonl (   x)    (x)

Referenced by lwip_ntohl().

#define lwip_htons (   x)    (x)

Referenced by lwip_ntohs().

#define LWIP_MAKE_U16 (   a,
  b 
)    ((a << 8) | b)
#define LWIP_MAX (   x,
 
)    (((x) > (y)) ? (x) : (y))
#define LWIP_MIN (   x,
 
)    (((x) < (y)) ? (x) : (y))

Referenced by pbuf_alloc().

#define lwip_ntohl (   x)    (x)
#define lwip_ntohs (   x)    (x)
#define LWIP_PLATFORM_BYTESWAP   0
#define LWIP_U32_DIFF (   a,
  b 
)    (((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'.

#define ntohl (   x)    lwip_ntohl(x)
#define ntohs (   x)    lwip_ntohs(x)
#define NULL   ((void *)0)

Referenced by _get_interrupt_handler(), access_virt_barray(), access_virt_sarray(), add_huff_table(), ak8975_selftest(), app_widget_launch(), at25dfx_enable_write(), at25dfx_erase_block(), at25dfx_erase_chip(), at25dfx_protect_sector(), at45dbx_usb_read_10(), at45dbx_usb_write_10(), audio_mixer_close_direct(), audio_mixer_get_buffer_direct(), b_fsaccess_init(), create_odither_tables(), d2i_RSA_PUBKEY(), default_decompress_parms(), dsp16_resampling_setup(), finish_pass_gather(), for(), format_message(), free_pool(), fsaccess_example_read(), fsaccess_example_write(), get_heap_free_size(), gfx_draw_char_hugemem(), gfx_draw_char_progmem(), gfx_draw_progmem_string_aligned(), gfx_draw_string_aligned(), gfx_generic_put_bitmap(), gfx_get_progmem_string_bounding_box(), gfx_get_string_bounding_box(), hmc5883l_selftest(), if(), ili9341_copy_pixels_to_screen(), ili9341_duplicate_pixel(), jinit_1pass_quantizer(), jinit_2pass_quantizer(), jinit_c_coef_controller(), jinit_c_main_controller(), jinit_c_master_control(), jinit_d_coef_controller(), jinit_d_post_controller(), jinit_forward_dct(), jinit_huff_decoder(), jinit_huff_encoder(), jinit_memory_mgr(), jinit_merged_upsampler(), jinit_phuff_decoder(), jpeg_abort(), jpeg_add_quant_table(), jpeg_copy_critical_parameters(), jpeg_CreateDecompress(), jpeg_destroy(), jpeg_make_c_derived_tbl(), jpeg_make_d_derived_tbl(), jpeg_new_colormap(), jpeg_read_raw_data(), jpeg_read_scanlines(), jpeg_set_defaults(), jpeg_std_error(), jpeg_write_raw_data(), jpeg_write_scanlines(), latch_quant_tables(), LOCAL(), LodePNG_IText_init(), LodePNG_Text_init(), low_level_input(), main(), master_selection(), median_cut(), mem_free(), mem_malloc(), mem_name(), mem_realloc(), mem_trim(), membag_alloc(), membag_get_largest_free_block_size(), membag_get_smallest_free_block_size(), memp_free(), memp_init(), METHODDEF(), mxt_init_device(), mxt_process_messages(), nav_partition_label(), netif_add(), netif_find(), netif_init(), netif_remove(), netif_set_default(), netif_set_ipaddr(), noop_upsample(), output_pass_setup(), 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(), pl_main_close(), pl_main_open(), pl_main_readline(), pl_nav_readentry(), pl_nav_setpos(), portTASK_FUNCTION(), post_process_prepass(), prepare_for_output_pass(), prepare_for_pass(), process_cmd_grp_dnload(), process_cmd_grp_upload(), process_data_crank_post(), process_pqueue(), process_qtouchlib_data(), prvAllocateTCBAndStack(), prvCopyDataToQueue(), prvHighestPriorityPeekTask(), prvHighPriorityMutexTask(), prvHighPriorityPeekTask(), prvInitialiseTaskLists(), prvInitialiseTCBVariables(), prvLowPriorityMutexTask(), prvMediumPriorityMutexTask(), prvMediumPriorityPeekTask(), prvRecursiveMutexBlockingTask(), prvRecursiveMutexControllingTask(), pvPortMalloc(), reader_id3_v1_string(), reader_id3_v2_picture(), reader_id3_v2_string(), reader_txt_jump_line(), request_virt_barray(), request_virt_sarray(), reset_input_controller(), reset_marker_reader(), run_membag_alloc_test(), run_membag_alloc_when_full_test(), run_membag_free_test(), run_membag_get_test(), run_membag_realloc_test(), sal_aes_setup(), sal_aes_wrrd(), sd_mmc_spi_read_multiple_sector_callback(), sd_mmc_spi_write_multiple_sector_callback(), sd_mmc_usb_read_10(), sd_mmc_usb_write_10(), self_destruct(), sensor_add_event(), sensor_attach(), SERIAL_Init(), setup_root_window(), smoothing_ok(), start_output_pass(), start_pass(), start_pass_1_quant(), start_pass_2_quant(), start_pass_coef(), start_pass_fdctmgr(), stdio_serial_init(), stdio_usb_init(), string_cleanup(), string_init(), sys_mbox_fetch(), sys_sem_wait(), sys_timeout(), sys_untimeout(), tcpip_callback_with_block(), tcpip_callbackmsg_new(), tcpip_init(), tcpip_input(), tcpip_thread(), tcpip_timeout(), tcpip_untimeout(), test_case_run(), transdecode_master_selection(), ucvector_cleanup(), ucvector_init(), udc_iface_disable(), udc_iface_enable(), udc_process_setup(), udc_req_std_dev_get_descriptor(), udc_sof_notify(), udd_ctrl_init(), udd_ctrl_out_received(), udi_dfu_atmel_mem_write(), udi_dfu_atmel_reset_protocol(), udi_dfu_atmel_setup(), udi_dfu_flip_msg_decode(), udi_msc_trans_block(), uivector_cleanup(), uivector_init(), vAltStartComTestTasks(), vCreateAltBlockTimeTasks(), vCreateBlockTimeTasks(), vCreateSuicidalTasks(), virtual_usb_trans(), vListInitialiseItem(), vListRemove(), vMemCheckTask(), vSecondaryBlockTimeTestTask(), vStartAltBlockingQueueTasks(), vStartAltGenericQueueTasks(), vStartAltPolledQueueTasks(), vStartBlockingQueueTasks(), vStartCountingSemaphoreTasks(), vStartDynamicPriorityTasks(), vStartGenericQueueTasks(), vStartIntegerMathTasks(), vStartLEDFlashTasks(), vStartMathTasks(), vStartPolledQueueTasks(), vStartQueuePeekTasks(), vStartRecursiveMutexTasks(), vStartSemaphoreTasks(), vTaskStartScheduler(), while(), widget_frame_command_handler(), win_add_top_child(), win_create(), win_destroy(), win_destroy_children(), win_draw_contents(), win_get_area(), win_get_attributes(), win_handle_pointer_event(), win_hide(), win_is_visible(), win_lower(), win_process_command_event(), win_process_keyboard_event(), win_process_pointer_event(), win_raise(), win_reparent(), win_set_area(), win_set_attributes(), win_set_keyboard_focus(), win_show(), win_unlink(), wlif_init(), wlif_input(), wlif_poll(), wtk_basic_frame_create(), wtk_button_create(), wtk_button_handler(), wtk_check_box_create(), wtk_check_box_handler(), wtk_frame_create(), wtk_handle_frame_release(), wtk_handle_resize_release(), wtk_icon_button_create(), wtk_icon_button_handler(), wtk_icon_group_create(), wtk_label_create(), wtk_plot_create(), wtk_plot_handler(), wtk_progress_bar_create(), wtk_radio_button_create(), wtk_radio_button_handler(), wtk_radio_group_create(), wtk_slider_create(), wtk_slider_handler(), wtk_start_drag(), xCoRoutineCreate(), xQueueGenericReceive(), xQueueGenericSend(), xQueueGenericSendFromISR(), and xQueueReceiveFromISR().

#define PP_HTONL (   x)    (x)
#define PP_HTONS (   x)    (x)
#define PP_NTOHL (   x)    (x)
#define PP_NTOHS (   x)    (x)