Atmel 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)
#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,
  y 
)    (((x) > (y)) ? (x) : (y))
#define LWIP_MIN (   x,
  y 
)    (((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)

Referenced by ping_recv().

#define NULL   ((void *)0)

Referenced by _get_interrupt_handler(), access_virt_barray(), access_virt_sarray(), adc_check_eoc(), adc_check_ovr(), adc_configure(), adc_disable(), adc_enable(), adc_get_latest_value(), adc_get_status(), adc_get_value(), adc_sample_sent_cb(), adc_start(), add_huff_table(), ai_async_cmd_out_free_ArrayU8(), ai_async_cmd_task(), ai_audio_context_save(), ai_audio_context_save_null(), ai_audio_nav_file_info_image(), ai_audio_nav_file_info_image_null(), ai_nav_file_info_image(), ai_nav_file_info_image_null(), ai_usb_ms_audio_context_save(), ai_usb_ms_audio_nav_file_info_image(), ai_usb_ms_init(), ai_usb_ms_nav_dir_nb(), ai_usb_ms_nav_file_info_image(), ai_usb_ms_new_connection(), ai_usb_ms_read_string(), ai_usb_ms_specific_restore_navigator_ex(), ai_usb_ms_support_info_image(), aic23b_dac_setup(), aic23b_dac_stop(), ak8975_selftest(), AppEngineConnectButton(), AppEngineInit(), ascii_to_key(), 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(), b_joystick_get_value(), b_lcd_get_value(), b_ledb1_get_value(), b_ledb2_get_value(), b_ledm1_get_value(), b_ledm2_get_value(), b_light_get_value(), b_light_init(), b_mmi_mkdir_aLOG(), b_mmi_mkdir_bLOG(), b_potentiometer_get_value(), b_potentiometer_init(), b_pushb1_get_value(), b_pushb2_get_value(), b_pushb3_get_value(), b_supervisor_switch_to_maintenance_mode(), b_temperature_get_value(), b_temperature_init(), bdatalog_start(), buff_player_close(), buff_player_dacs_output(), buff_player_malloc(), close_conn(), cmd_connect(), cmd_ttcp(), codec_mp3_task(), codec_wav_task(), config_file_get_value(), config_file_set_value(), console_gets(), console_schedule_cmd(), create_odither_tables(), d2i_RSA_PUBKEY(), default_decompress_parms(), device_audio_task(), device_audio_task_init(), device_cdc_task_init(), device_mass_storage_task_init(), device_mouse_hid_task_init(), device_template_task(), device_template_task_init(), dsp16_resampling_setup(), e_actuator_cmd_get_value(), e_actuator_cmd_set_value(), e_actuator_help(), e_actuator_ScheduleCmdSet(), e_cptime_cmd_get_config(), e_cptime_cmd_set_config(), e_ethernet_cmd_get_config(), e_ethernet_cmd_set_config(), e_fscmds_goto_drive(), e_fscmds_shell_append(), e_fscmds_shell_cat(), e_fscmds_shell_cd(), e_fscmds_shell_cp(), e_fscmds_shell_df(), e_fscmds_shell_disk(), e_fscmds_shell_fat(), e_fscmds_shell_format(), e_fscmds_shell_goto(), e_fscmds_shell_help(), e_fscmds_shell_ls(), e_fscmds_shell_mark(), e_fscmds_shell_mkdir(), e_fscmds_shell_mount(), e_fscmds_shell_mv(), e_fscmds_shell_pwd(), e_fscmds_shell_rm(), e_fscmds_shell_touch(), e_ip_stat(), e_light_get_config(), e_light_set_config(), e_potentiometer_get_config(), e_potentiometer_set_config(), e_sensor_cmd_get_config(), e_sensor_cmd_get_value(), e_sensor_cmd_set_config(), e_sensor_help(), e_Shell_help(), e_smtpclient_cmd_get_config(), e_supervisor_switch_to_maintenance_mode(), e_syscmds_cmd_set_config(), e_syscmds_help(), e_syscmds_reboot(), e_syscmds_trace(), e_syscmds_version(), e_temperature_get_config(), e_temperature_set_config(), e_usbsys_lsusb(), et024006_CopyPixelsFromScreen(), et024006_CopyPixelsToScreen(), et024006_GetPixmap(), et024006_PutBitmap(), et024006_PutPixmap(), ethernetif_init(), ethernetif_input(), find_best_candidate(), finish_pass_gather(), for(), format_message(), free_pool(), fs_open(), fsaccess_example_read(), fsaccess_example_write(), fsdata_app_enable(), get_heap_free_size(), getopt(), getopt_internal(), 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(), host_audio_task_init(), host_audio_task_shutdown(), host_cdc_task_init(), host_mass_storage_task_init(), host_mouse_hid_task(), host_mouse_hid_task_init(), host_read_10_ram(), host_read_10_ram_stop(), host_send_data_interrupt(), host_template_task_init(), host_user_check_class(), http_accept(), http_poll(), http_recv(), httpd_start(), if(), ili9341_copy_pixels_to_screen(), ili9341_duplicate_pixel(), init_pdca(), init_pdca_adc(), init_pdca_usart(), input(), iprvSerialCreateQueues(), is_option(), 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_lib_decode(), jpeg_lib_decode_ex(), 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_stdio_src(), jpeg_write_raw_data(), jpeg_write_scanlines(), latch_quant_tables(), LOCAL(), local_pdca_init(), LodePNG_IText_init(), LodePNG_Text_init(), low_level_init(), low_level_input(), low_level_output(), 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(), mmi_display(), ms3_dac_setup(), ms3_dac_stop(), mxt_init_device(), mxt_process_messages(), myrand(), nav_partition_label(), netif_add(), netif_find(), netif_init(), netif_remove(), netif_set_default(), netif_set_ipaddr(), noop_upsample(), output(), 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(), ping_send(), pl_main_close(), pl_main_open(), pl_main_readline(), pl_nav_readentry(), pl_nav_setpos(), play_mp3(), play_wav(), player_shutdown(), portTASK_FUNCTION(), post_process_prepass(), prepare_for_output_pass(), prepare_for_pass(), process_data_crank_post(), process_pqueue(), prv_cat(), prv_df(), prv_e_usbsys_sync_cp_ukey(), prv_ls(), prvAllocateTCBAndStack(), prvCopyDataToQueue(), prvEthernetConfigureInterface(), prvHighestPriorityPeekTask(), prvHighPriorityMutexTask(), prvHighPriorityPeekTask(), prvInitialiseTaskLists(), prvInitialiseTCBVariables(), prvjoystick_ISR_NonNakedBehaviour(), prvLowPriorityMutexTask(), prvMediumPriorityMutexTask(), prvMediumPriorityPeekTask(), prvpushb_ISR_NonNakedBehaviour(), prvRecursiveMutexBlockingTask(), prvRecursiveMutexControllingTask(), prvSetupMACBInterrupt(), pvPortMalloc(), pwm_dac_pwm_int_handler(), pwm_dac_stop(), pxdatalog_log_alloc_init(), 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(), rtouch_init(), rtouch_process_samples(), rtouch_resample(), 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(), Shell_exec(), smoothing_ok(), start_ip_stack(), start_output_pass(), start_pass(), start_pass_1_quant(), start_pass_2_quant(), start_pass_coef(), start_pass_fdctmgr(), state_machine_source(), stdio_serial_init(), stdio_usb_init(), string_cleanup(), string_init(), sys_arch_mbox_fetch(), sys_arch_mbox_tryfetch(), sys_arch_sem_wait(), sys_init(), sys_mbox_fetch(), sys_mbox_free(), sys_mbox_new(), sys_mbox_post(), sys_mbox_set_invalid(), sys_mbox_trypost(), sys_mutex_set_invalid(), sys_sem_free(), sys_sem_new(), sys_sem_set_invalid(), sys_sem_signal(), sys_sem_wait(), sys_thread_new(), sys_timeout(), sys_untimeout(), tcp_conn_err_cb(), tcp_recv_cb(), tcp_start(), tcpip_callback_with_block(), tcpip_callbackmsg_new(), tcpip_init(), tcpip_init_done(), tcpip_input(), tcpip_thread(), tcpip_timeout(), tcpip_untimeout(), test_case_run(), tpa6130_dac_setup(), tpa6130_dac_stop(), transdecode_master_selection(), ttcp_destroy(), ttcp_start(), 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(), udp_send_bytes(), udp_start(), uhc_connection_tree(), uhc_dev_get_string(), uhc_dev_get_string_manufacturer(), uhc_dev_get_string_product(), uhc_dev_get_string_serial(), uhc_dev_is_high_speed_support(), uhc_enumeration_error(), uhc_enumeration_step11(), uhc_enumeration_step12(), uhc_enumeration_step13(), uhc_enumeration_step14(), uhc_enumeration_step15(), uhc_enumeration_step5(), uhc_enumeration_step9(), uhc_get_device_number(), uhc_notify_sof(), uhc_remotewakeup(), uhd_ctrl_phase_data_in(), uhd_ctrl_phase_data_out(), uhd_ctrl_request_end(), uhd_enable(), uhd_interrupt(), uhd_pipe_finish_job(), uhd_setup_request(), uhi_aoa_install(), uhi_aoa_mode_enable_step1(), uhi_aoa_mode_enable_step2(), uhi_aoa_mode_enable_step3(), uhi_aoa_send_info_string(), uhi_aoa_uninstall(), uhi_cdc_free_device(), uhi_cdc_get_nb_received(), uhi_cdc_get_port(), uhi_cdc_getc(), uhi_cdc_install(), uhi_cdc_is_tx_ready(), uhi_cdc_putc(), uhi_cdc_read_buf(), uhi_cdc_rx_received(), uhi_cdc_set_conf(), uhi_cdc_set_ctrl_line(), uhi_cdc_sof(), uhi_cdc_tx_send(), uhi_cdc_uninstall(), uhi_cdc_write_buf(), uhi_hid_mouse_install(), uhi_hid_mouse_uninstall(), uhi_msc_enable(), uhi_msc_enable_step1(), uhi_msc_enable_step2(), uhi_msc_get_lun(), uhi_msc_get_lun_desc(), uhi_msc_mem_read_10_ram(), uhi_msc_mem_read_capacity(), uhi_msc_mem_read_sector_size(), uhi_msc_mem_wr_protect(), uhi_msc_mem_write_10_ram(), uhi_msc_reset_endpoint(), uhi_msc_scsi_test_unit_ready(), uhi_msc_uninstall(), uhi_vendor_bulk_is_available(), uhi_vendor_control_in_run(), uhi_vendor_control_out_run(), uhi_vendor_enable(), uhi_vendor_install(), uhi_vendor_int_is_available(), uhi_vendor_iso_is_available(), uhi_vendor_uninstall(), uivector_cleanup(), uivector_init(), usb_device_task_init(), usb_get_descriptor(), usb_host_task_init(), usb_mass_storage_cbw(), usb_pipe_interrupt(), usb_set_feature(), usb_stream_close(), usb_stream_fifo_get_used_room(), usb_stream_get_current_buffer_for_writing(), usb_stream_input(), usb_stream_process(), usb_task_init(), usb_user_get_descriptor(), ushell_task_init(), v_datalog_AddSensorLog(), v_sensor_stop(), vAltStartComTestTasks(), vCreateAltBlockTimeTasks(), vCreateBlockTimeTasks(), vCreateSuicidalTasks(), vdatalog_log_free(), vDisplay_Start(), vEthernetGetGWAddr(), vEthernetGetIPAddr(), vEthernetGetMACAddr(), vEthernetGetSubnetMask(), vExecScheduledSet(), virtual_usb_trans(), vListInitialiseItem(), vListRemove(), vMACBRead(), vMemCheckTask(), vSecondaryBlockTimeTestTask(), vStartAltBlockingQueueTasks(), vStartAltGenericQueueTasks(), vStartAltPolledQueueTasks(), vStartBlockingQueueTasks(), vStartCom1Shell(), vStartCountingSemaphoreTasks(), vStartDynamicPriorityTasks(), vStartEthernetTaskLauncher(), vStartGenericQueueTasks(), vStartIntegerMathTasks(), vStartLEDFlashTasks(), vStartMathTasks(), vStartPolledQueueTasks(), vStartQueuePeekTasks(), vStartRecursiveMutexTasks(), vStartSemaphoreTasks(), vSupervisor_Start(), vTaskStartScheduler(), while(), 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(), wl_cm_set_network(), wl_cm_start(), wl_init_complete_cb(), 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(), x_datalog_AddLogFromISR(), 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)