mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 01:33:35 +08:00
25 lines
459 B
C++
25 lines
459 B
C++
/*
|
|
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <uavcan/impl_constants.hpp>
|
|
#include <uavcan/stdint.hpp>
|
|
|
|
namespace uavcan
|
|
{
|
|
/**
|
|
* API for transfer buffer users.
|
|
*/
|
|
class UAVCAN_EXPORT ITransferBuffer
|
|
{
|
|
public:
|
|
virtual ~ITransferBuffer() { }
|
|
|
|
virtual int read(unsigned offset, uint8_t* data, unsigned len) const = 0;
|
|
virtual int write(unsigned offset, const uint8_t* data, unsigned len) = 0;
|
|
};
|
|
|
|
}
|