mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 08:03:36 +08:00
Removed forward declarations (not compatible with MISRA)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* 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;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user