4.9.1 Functions
static bool SERCOM_EventHandler (SERCOM_I2C_SLAVE_TRANSFER_EVENT event)
com_adapter_result_t COM_Initialize (uint16_t maximumBufferLength)
Performs initialization actions for the communication peripheral and adapter code.
static uint16_t FrameChecksumCalculate (uint8_t *ftpData, uint16_t bufferLength)
com_adapter_result_t COM_FrameTransfer (uint8_t *receiveBufferPtr, uint16_t *receiveIndexPtr)
Receives or sends bytes over Serial Communication (SERCOM) and pushes data bytes into the provided buffer until a complete frame is received.
com_adapter_result_t COM_FrameSet (uint8_t *responseBufferPtr, uint16_t responseLength)
Transfers bytes from the given buffer using the defined framing format.
