Arduino Libraries/USBHost/src/adk.cpp
/**
 * \brief Read from ADK.
 *
 * \param nreadbytes Return value containing the number of read bytes.
 * \param datalen Buffer length.
 * \param dataptr Buffer to store the incoming data.
 *
 * \return 0 on success, error code otherwise.
 */
\brief Read from ADK.
\param nreadbytes Return value containing the number of read bytes.
\param datalen Buffer length.
\param dataptr Buffer to store the incoming data.

\return 0 on success, error code otherwise.
\ brief Read from ADK . \ param nreadbytes Return value containing the number of read bytes . \ param datalen Buffer length . \ param dataptr Buffer to store the incoming data . \ return 0 on success error code otherwise .
uint32_t ADK::read(uint32_t *nreadbytes, uint32_t datalen, uint8_t *dataptr)
{
	*nreadbytes = datalen;
	return pUsb->inTransfer(bAddress, epInfo[epDataInIndex].deviceEpNum, nreadbytes, dataptr);
}
uint32_t ADK :: read ( uint32_t * nreadbytes , uint32_t datalen , uint8_t * dataptr ) { * nreadbytes = datalen ; return pUsb -> inTransfer ( bAddress , epInfo [ epDataInIndex ] . deviceEpNum , nreadbytes , dataptr ) ; }
\brief Read from ADK.
\ brief Read from ADK .