Xil_In16BE - 2021.2 English

Xilinx Standalone Library Documentation: OS and Libraries Document Collection

Document ID
UG643
Release Date
2021-10-27
Version
2021.2 English

Perform an big-endian input operation for a 16-bit memory location by reading from the specified address and returning the value read from that address.

Prototype

INLINE u16 Xil_In16BE(UINTPTR Addr);

Parameters

The following table lists the Xil_In16BE function arguments.

Table 1. Xil_In16BE Arguments
Name Description
Addr contains the address at which to perform the input operation.

Returns

The value read from the specified input address with the proper endianness. The return value has the same endianness as that of the processor. For example, if the processor is little-endian, the return value is the byte-swapped value read from the address.