2.3.3.2 COM_FrameTransfer()
com_adapter_result_t COM_FrameTransfer (uint8_t * receiveBufferPtr, uint16_t * receiveIndexPtr)
Receives or sends bytes over the SERCOM and pushes the data bytes into the provided buffer until a complete frame is received.
| [in/out] |
receiveBufferPtr - Pointer to the buffer provided to SERCOM |
| [in/out] |
receiveIndexPtr - Pointer to the number of bytes successfully received by SERCOM |
COM_PASS - SERCOM has received a complete frame and is ready for further processing COM_BUSY - SERCOM still loading the buffer COM_BUFFER_ERROR - SERCOM received too many bytes COM_FAIL - An error occurred in SERCOM |
