ark::canbus::SdoUpload::Block

Defined in header “ark/canbus/canopen/sdo_upload.hh”.


Method for block upload of data to the remote.

Methods

  • Block(uint16_t index, uint8_t subindex, uint8_t block_segments)

  • core::ByteBuffer initiate_transfer()
    Begins the segmented transfer. Returns the data payload to send to the SSDO to initiate the transfer.

  • std::vector< core::ByteBuffer > continue_transfer(const core::ByteBuffer & packet)
    Receives the data from a CAN packet, and sends a request for additional data (if necessary, or an empty optional if the buffer is complete). The returned buffer vector is a set of CANopen payloads that should be sent to the SSDO that we are transferring data to.

    Returns an empty vector if transfer is complete.