WIP: somethings wrong.. #19
@ -13,8 +13,9 @@ typedef uint32_t address_t;
|
||||
* single interface (like RMAP or I2C)
|
||||
* @details
|
||||
* To use this class, implement a communication specific child cookie which
|
||||
* inherits Cookie. Cookie instances are created in config/ Factory.cpp by calling
|
||||
* CookieIF* childCookie = new ChildCookie(...).
|
||||
* inherits Cookie. Cookie instances are created in config/Factory.cpp by
|
||||
* calling @code{.cpp} CookieIF* childCookie = new ChildCookie(...)
|
||||
* @endcode .
|
||||
*
|
||||
* This cookie is then passed to the child device handlers, which stores the
|
||||
* pointer and passes it to the communication interface functions.
|
||||
|
@ -60,9 +60,9 @@ public:
|
||||
* this can be performed in this function, which is called on device handler
|
||||
* initialization.
|
||||
* @param cookie
|
||||
* @return -@c RETURN_OK if initialization was successfull
|
||||
* - Everything else triggers failure event with
|
||||
* returnvalue as parameter 1
|
||||
* @return
|
||||
* - @c RETURN_OK if initialization was successfull
|
||||
* - Everything else triggers failure event with returnvalue as parameter 1
|
||||
*/
|
||||
virtual ReturnValue_t initializeInterface(CookieIF * cookie) = 0;
|
||||
|
||||
@ -73,9 +73,9 @@ public:
|
||||
* @param cookie
|
||||
* @param data
|
||||
* @param len
|
||||
* @return -@c RETURN_OK for successfull send
|
||||
* - Everything else triggers failure event with
|
||||
* returnvalue as parameter 1
|
||||
* @return
|
||||
* - @c RETURN_OK for successfull send
|
||||
* - Everything else triggers failure event with returnvalue as parameter 1
|
||||
*/
|
||||
virtual ReturnValue_t sendMessage(CookieIF *cookie, const uint8_t * sendData,
|
||||
size_t sendLen) = 0;
|
||||
|
@ -35,24 +35,20 @@ public:
|
||||
static constexpr ReturnValue_t SEMAPHORE_NOT_OWNED = MAKE_RETURN_CODE(2);
|
||||
static constexpr ReturnValue_t SEMAPHORE_NULLPOINTER = MAKE_RETURN_CODE(3);
|
||||
|
||||
/**
|
||||
* Create a binary semaphore
|
||||
*/
|
||||
BinarySemaphore();
|
||||
|
||||
/**
|
||||
* Copy ctor
|
||||
* @param
|
||||
* @brief Copy ctor
|
||||
*/
|
||||
BinarySemaphore(const BinarySemaphore&);
|
||||
|
||||
/**
|
||||
* Copy assignment
|
||||
* @brief Copy assignment
|
||||
*/
|
||||
BinarySemaphore& operator=(const BinarySemaphore&);
|
||||
|
||||
/**
|
||||
* Move constructor
|
||||
* @brief Move constructor
|
||||
*/
|
||||
BinarySemaphore (BinarySemaphore &&);
|
||||
|
||||
|
16
serialize/SerializeDoc.h
Normal file
16
serialize/SerializeDoc.h
Normal file
@ -0,0 +1,16 @@
|
||||
/**
|
||||
* @page serialPage Serialization Tools
|
||||
* This page refers to the serialization tools included in framework/serialize.
|
||||
* The serialization tools are a useful tool to convert object data into raw
|
||||
* buffers and vice-versa. Here is a rough overview which tool to use for
|
||||
* which purpose.
|
||||
*
|
||||
* @section endSwapper Endian Swapper
|
||||
* This header file includes tools to do simple serial order swapping
|
||||
*
|
||||
* @section serialiezIF SerializeIF
|
||||
*
|
||||
* @section serElement SerializeElement
|
||||
*
|
||||
*/
|
||||
|
@ -31,7 +31,7 @@ seconds_t Stopwatch::stopSeconds() {
|
||||
|
||||
void Stopwatch::display() {
|
||||
if(displayMode == StopwatchDisplayMode::MILLIS) {
|
||||
info << "Stopwatch: Operation took " << elapsedTime.tv_sec * 1000 +
|
||||
info << "Stopwatch: Operation took " << elapsedTime.tv_sec / 1000 +
|
||||
elapsedTime.tv_usec * 1000 << " milliseconds" << std::endl;
|
||||
}
|
||||
else if(displayMode == StopwatchDisplayMode::SECONDS) {
|
||||
|
Loading…
Reference in New Issue
Block a user