/** * Read 16-bit halfword from the IO Bus memory mapped IO * * @param InstancePtr is a pointer to an XIOModule instance to be * worked on. * @param ByteOffset is a byte offset from the beginning of the * IO Bus address area * * @return Value read from the IO Bus - 16-bit halfword * *****************************************************************************/ u16 XIOModule_IoReadHalfword(XIOModule * InstancePtr, u32 ByteOffset) { XASSERT_NONVOID(InstancePtr != NULL); XASSERT_NONVOID(InstancePtr->IsReady == XCOMPONENT_IS_READY); return XIomodule_In16((InstancePtr->IoBaseAddress + ByteOffset)); }
/** * Read 16-bit halfword from the IO Bus memory mapped IO * * @param InstancePtr is a pointer to an XIOModule instance to be * worked on. * @param ByteOffset is a byte offset from the beginning of the * IO Bus address area * * @return Value read from the IO Bus - 16-bit halfword * *****************************************************************************/ u16 XIOModule_IoReadHalfword(XIOModule * InstancePtr, u32 ByteOffset) { Xil_AssertNonvoid(InstancePtr != NULL); Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY); return XIomodule_In16((InstancePtr->IoBaseAddress + ByteOffset)); }