Embedded TCP/IP stack
4.1.0
|
fnet_cpu.h
73 #define FNET_HTONS(short_var) ((((short_var) & 0x00FFU) << 8U) | (((short_var) & 0xFF00U) >> 8U))
91 #define FNET_HTONL(long_var) ((((long_var) & 0x000000FFU) << 24U) | (((long_var) & 0x0000FF00U) << 8U) | (((long_var) & 0x00FF0000U) >> 8U) | (((long_var) & 0xFF000000U) >> 24U))
191 #define fnet_htons(short_var) (short_var) /* Convert 16 bit integer from host- to network byte order.*/
192 #define fnet_ntohs(short_var) (short_var) /* Convert 16 bit integer from network - to host byte order.*/
193 #define fnet_htonl(long_var) (long_var) /* Convert 32 bit integer from host- to network byte order.*/
194 #define fnet_ntohl(long_var) (long_var) /* Convert 32 bit integer from network - to host byte order.*/
fnet_uint16_t fnet_ntohs(fnet_uint16_t short_var)
Converts 16-bit value from network to host byte order.
fnet_int32_t fnet_cpu_serial_getchar(fnet_index_t port_number)
Reads character from the serial port.
void fnet_cpu_serial_putchar(fnet_index_t port_number, fnet_char_t character)
Writes character to the serial port.
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
Definition: fnet_stdlib.h:56
void fnet_cpu_serial_init(fnet_index_t port_number, fnet_uint32_t baud_rate)
Initializes the serial port.
fnet_uint16_t fnet_htons(fnet_uint16_t short_var)
Converts 16-bit value from host to network byte order.
fnet_uint32_t fnet_htonl(fnet_uint32_t long_var)
Converts 32-bit value from host to network byte order.
fnet_return_t fnet_cpu_flash_write(fnet_uint8_t *dest, const fnet_uint8_t *data)
Writes the specified data to the Flash memory.
fnet_size_t bytes
Number of received bytes, in addition to megabytes, during the benchmark session. ...
Definition: fnet_bench_srv.h:73
fnet_uint32_t fnet_cpu_irq_desc_t
IRQ status descriptor returned by the fnet_cpu_irq_disable() function. Actually it corresponds to the...
Definition: fnet_cpu.h:211
fnet_return_t fnet_cpu_flash_erase(void *flash_addr, fnet_size_t bytes)
Erases the specified range of the Flash memory.
fnet_uint32_t fnet_ntohl(fnet_uint32_t long_var)
Converts 32-bit value from network to host byte order.
© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net