diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-08 09:44:53 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 17:10:39 +0100 |
commit | c01da10d067038794eb845735e2a7959744ca2b3 (patch) | |
tree | cbaa9ff7fa7338c96ebd5d2f0766872df5963283 /src/can/can-message.hpp | |
parent | 9519e9d5b875b45fbf6f32267b728b1d11377276 (diff) |
Added a warning that it is an example code
Change-Id: Ib66e49960a348896020fba56f7d98910623af83f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can/can-message.hpp')
-rw-r--r-- | src/can/can-message.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/can/can-message.hpp b/src/can/can-message.hpp index 38a8e59..c5abd7f 100644 --- a/src/can/can-message.hpp +++ b/src/can/can-message.hpp @@ -112,6 +112,24 @@ struct CanMessageDefinition { }; typedef struct CanMessageDefinition CanMessageDefinition; +class can_message_definition_t +{ + private: + can_bus_dev_t& bus_; /*!< bus - A pointer to the bus this message is on. */ + uint32_t id_; /*!< id - The ID of the message.*/ + CanMessageFormat format_; /*!< format - the format of the message's ID.*/ + FrequencyClock clock_; /*!< clock - an optional frequency clock to control the output of this + * message, if sent raw, or simply to mark the max frequency for custom + * handlers to retriec++ if ? syntaxve.*/ + bool forceSendChanged_; /*!< forceSendChanged - If true, regardless of the frequency, it will send CAN + * message if it has changed when using raw passthrough.*/ + uint8_t lastValue_[CAN_MESSAGE_SIZE]; /*!< lastValue - The last received value of the message. Defaults to undefined. + * This is required for the forceSendChanged functionality, as the stack + * needs to compare an incoming CAN message with the previous frame.*/ + + public: +}; + /** * @struct CanMessageSet * |