WIP: somethings wrong.. #19
@ -13,15 +13,11 @@
|
|||||||
#include <framework/devicehandlers/DeviceHandlerBase.h>
|
#include <framework/devicehandlers/DeviceHandlerBase.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Used to pass communication information between tasks
|
* @brief Message type to send larger messages
|
||||||
*
|
*
|
||||||
* @details
|
* @details
|
||||||
* Can be used to pass information like data pointers and
|
* Can be used to pass information like data pointers and
|
||||||
* data sizes between communication tasks
|
* data sizes between communication tasks.
|
||||||
* like the Device Handler Comm Interfaces and Polling Tasks.
|
|
||||||
*
|
|
||||||
* Can also be used to exchange actual data if its not too large
|
|
||||||
* (e.g. Sensor values).
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
class CommunicationMessage: public MessageQueueMessage {
|
class CommunicationMessage: public MessageQueueMessage {
|
||||||
|
@ -25,9 +25,6 @@ public:
|
|||||||
ReturnValue_t deleteData(store_address_t) override;
|
ReturnValue_t deleteData(store_address_t) override;
|
||||||
ReturnValue_t deleteData(uint8_t* buffer, size_t size,
|
ReturnValue_t deleteData(uint8_t* buffer, size_t size,
|
||||||
store_address_t* storeId = NULL) override;
|
store_address_t* storeId = NULL) override;
|
||||||
|
|
||||||
ReturnValue_t modifyData(store_address_t packet_id, uint8_t** packet_ptr,
|
|
||||||
size_t* size) override;
|
|
||||||
protected:
|
protected:
|
||||||
ReturnValue_t reserveSpace(const uint32_t size, store_address_t* address,
|
ReturnValue_t reserveSpace(const uint32_t size, store_address_t* address,
|
||||||
bool ignoreFault) override;
|
bool ignoreFault) override;
|
||||||
|
@ -40,11 +40,3 @@ inline ReturnValue_t PoolManager<NUMBER_OF_POOLS>::deleteData(uint8_t* buffer,
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<uint8_t NUMBER_OF_POOLS>
|
|
||||||
inline ReturnValue_t PoolManager<NUMBER_OF_POOLS>::modifyData(
|
|
||||||
store_address_t packet_id, uint8_t** packet_ptr, size_t* size) {
|
|
||||||
MutexHelper mutexHelper(mutex,MutexIF::NO_TIMEOUT);
|
|
||||||
ReturnValue_t status = LocalPool<NUMBER_OF_POOLS>::modifyData(packet_id,
|
|
||||||
packet_ptr, size);
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user