4.7.1 Functions

  • static uint16_t FrameCheckCalculate (uint8_t *ftpData, uint16_t bufferLength)

  • 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.

  • com_adapter_result_t COM_FrameSet (uint8_t *responseBufferPtr, uint16_t responseLength)

    Transfers bytes from the given buffer using the defined framing format.

  • com_adapter_result_t COM_Initialize (uint16_t maximumBufferLength)

    Performs the initialization actions for the communication peripheral and adapter code.