mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Implement FlexRay transmit, configuration, and cold start
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
#ifndef __FLEXRAYMESSAGEBUFFER_H_
|
||||
#define __FLEXRAYMESSAGEBUFFER_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace icsneo {
|
||||
|
||||
namespace FlexRay {
|
||||
|
||||
#define INIT(x) = x
|
||||
|
||||
#define neoflexray_message_buffer_t icsneo::FlexRay::MessageBuffer
|
||||
struct MessageBuffer {
|
||||
#else // __cplusplus
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define INIT(x)
|
||||
|
||||
typedef struct {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
bool isDynamic INIT(false);
|
||||
bool isSync INIT(false); // Must be set if isStartup is set!
|
||||
bool isStartup INIT(false);
|
||||
bool isNMFrame INIT(false);
|
||||
bool isTransmit INIT(false);
|
||||
uint16_t frameID INIT(0);
|
||||
bool channelA INIT(false);
|
||||
bool channelB INIT(false);
|
||||
uint8_t frameLengthBytes INIT(0);
|
||||
uint8_t baseCycle INIT(0);
|
||||
uint8_t cycleRepetition INIT(0);
|
||||
bool continuousMode INIT(false);
|
||||
uint16_t _dataPointer INIT(0); // For internal use
|
||||
uint16_t _id INIT(0); // For internal use
|
||||
|
||||
#ifndef __cplusplus
|
||||
} neoflexray_message_buffer_t;
|
||||
#else
|
||||
};
|
||||
|
||||
} // namespace FlexRay
|
||||
|
||||
} // namespace icsneo
|
||||
#endif // __cplusplus
|
||||
|
||||
#endif // __FLEXRAYMESSAGEBUFFER_H_
|
||||
Reference in New Issue
Block a user