WIP: somethings wrong.. #19

Closed
muellerr wants to merge 808 commits from source/master into master
5 changed files with 43 additions and 30 deletions
Showing only changes of commit 8a8761ea88 - Show all commits

View File

@ -13,8 +13,9 @@ typedef uint32_t address_t;
* single interface (like RMAP or I2C) * single interface (like RMAP or I2C)
* @details * @details
* To use this class, implement a communication specific child cookie which * To use this class, implement a communication specific child cookie which
* inherits Cookie. Cookie instances are created in config/ Factory.cpp by calling * inherits Cookie. Cookie instances are created in config/Factory.cpp by
* CookieIF* childCookie = new ChildCookie(...). * calling @code{.cpp} CookieIF* childCookie = new ChildCookie(...)
* @endcode .
* *
* This cookie is then passed to the child device handlers, which stores the * This cookie is then passed to the child device handlers, which stores the
* pointer and passes it to the communication interface functions. * pointer and passes it to the communication interface functions.

View File

@ -60,9 +60,9 @@ public:
* this can be performed in this function, which is called on device handler * this can be performed in this function, which is called on device handler
* initialization. * initialization.
* @param cookie * @param cookie
* @return -@c RETURN_OK if initialization was successfull * @return
* - Everything else triggers failure event with * - @c RETURN_OK if initialization was successfull
* returnvalue as parameter 1 * - Everything else triggers failure event with returnvalue as parameter 1
*/ */
virtual ReturnValue_t initializeInterface(CookieIF * cookie) = 0; virtual ReturnValue_t initializeInterface(CookieIF * cookie) = 0;
@ -73,9 +73,9 @@ public:
* @param cookie * @param cookie
* @param data * @param data
* @param len * @param len
* @return -@c RETURN_OK for successfull send * @return
* - Everything else triggers failure event with * - @c RETURN_OK for successfull send
* returnvalue as parameter 1 * - Everything else triggers failure event with returnvalue as parameter 1
*/ */
virtual ReturnValue_t sendMessage(CookieIF *cookie, const uint8_t * sendData, virtual ReturnValue_t sendMessage(CookieIF *cookie, const uint8_t * sendData,
size_t sendLen) = 0; size_t sendLen) = 0;

View File

@ -35,24 +35,20 @@ public:
static constexpr ReturnValue_t SEMAPHORE_NOT_OWNED = MAKE_RETURN_CODE(2); static constexpr ReturnValue_t SEMAPHORE_NOT_OWNED = MAKE_RETURN_CODE(2);
static constexpr ReturnValue_t SEMAPHORE_NULLPOINTER = MAKE_RETURN_CODE(3); static constexpr ReturnValue_t SEMAPHORE_NULLPOINTER = MAKE_RETURN_CODE(3);
/**
* Create a binary semaphore
*/
BinarySemaphore(); BinarySemaphore();
/** /**
* Copy ctor * @brief Copy ctor
* @param
*/ */
BinarySemaphore(const BinarySemaphore&); BinarySemaphore(const BinarySemaphore&);
/** /**
* Copy assignment * @brief Copy assignment
*/ */
BinarySemaphore& operator=(const BinarySemaphore&); BinarySemaphore& operator=(const BinarySemaphore&);
/** /**
* Move constructor * @brief Move constructor
*/ */
BinarySemaphore (BinarySemaphore &&); BinarySemaphore (BinarySemaphore &&);

16
serialize/SerializeDoc.h Normal file
View 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
*
*/

View File

@ -31,7 +31,7 @@ seconds_t Stopwatch::stopSeconds() {
void Stopwatch::display() { void Stopwatch::display() {
if(displayMode == StopwatchDisplayMode::MILLIS) { 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; elapsedTime.tv_usec * 1000 << " milliseconds" << std::endl;
} }
else if(displayMode == StopwatchDisplayMode::SECONDS) { else if(displayMode == StopwatchDisplayMode::SECONDS) {