31#ifndef DWFRAMEWORK_DWNODES_SENSORS_DWVEHICLESTATENODE_DWVEHICLESTATECHANNELNEWNODE_HPP_
32#define DWFRAMEWORK_DWNODES_SENSORS_DWVEHICLESTATENODE_DWVEHICLESTATECHANNELNEWNODE_HPP_
34#include <dw/sensors/common/Sensors.h>
35#include <dw/sensors/canbus/CAN.h>
36#include <dw/sensors/data/Data.h>
46#include <dwframework/dwnodes/common/SensorCommonTypes.hpp>
47#include <dwframework/dwnodes/common/channelpackets/SensorCommonTypes.hpp>
48#include <dwframework/dwnodes/common/channelpackets/Sensors.hpp>
49#include <dwframework/dwnodes/common/channelpackets/VehicleIOValStructures.hpp>
83 static constexpr char8_t LOG_TAG[]{
"dwVehicleStateChannelNewNode"};
93 DW_DESCRIBE_PORT(dwVehicleIONonSafetyState,
"VEHICLE_IO_NON_SAFETY_STATE"_sv),
94 DW_DESCRIBE_PORT(dwVehicleIOActuationFeedback,
"VEHICLE_IO_ACTUATION_FEEDBACK"_sv),
95 DW_DESCRIBE_PORT(dwVehicleIOASILStateE2EWrapper,
"VEHICLE_IO_ASIL_STATE"_sv),
108 DW_DESCRIBE_PORT(dwVehicleIONonSafetyState,
"VEHICLE_IO_NON_SAFETY_STATE"_sv),
109 DW_DESCRIBE_PORT(dwVehicleIOActuationFeedback,
"VEHICLE_IO_ACTUATION_FEEDBACK"_sv),
110 DW_DESCRIBE_PORT(dwVehicleIOASILStateE2EWrapper,
"VEHICLE_IO_ASIL_STATE"_sv),
118 describePass(StringView{
"SETUP"}, DW_PROCESSOR_TYPE_CPU),
119 describePass(StringView{
"PROCESSED_OUTPUT"}, DW_PROCESSOR_TYPE_CPU),
120 describePass(StringView{
"TEARDOWN"}, DW_PROCESSOR_TYPE_CPU));
131 describeConstructorArgument<VehicleStateNodeNewParams>(
141 describeConstructorArgument<const char*>(
145 describeConstructorArgument<dwConstRigHandle_t>(
147 dwConstRigHandle_t)),
148 describeConstructorArgument<dwSALHandle_t>(
151 describeConstructorArgument<dwContextHandle_t>(
154 describeConstructorArgument<bool>(
157 "errorHandlingEnabled"_sv,
161 dwSALHandle_t sal, dwContextHandle_t ctx,
bool errorHandlingEnabled =
false);
#define DW_DESCRIBE_PARAMETER_WITH_DEFAULT(TYPE_NAME, args...)
#define DW_DESCRIBE_UNNAMED_PARAMETER_WITH_SEMANTIC(TYPE_NAME, SEMANTIC_TYPE_NAME, args...)
#define DW_DESCRIBE_UNNAMED_PARAMETER(TYPE_NAME, args...)
#define DW_DESCRIBE_PARAMETER(TYPE_NAME, args...)
#define DW_DESCRIBE_PORT(TYPE_NAME, NAME, args...)
The interface to access parameter values identified by name and/or (semantic) type.
dwVehicleStateChannelNewNode(VehicleStateNodeNewParams const ¶ms, const char *sensorName, dwConstRigHandle_t rigHandle, dwSALHandle_t sal, dwContextHandle_t ctx, bool errorHandlingEnabled=false)
static constexpr auto describeOutputPorts()
static constexpr auto describePasses()
static std::unique_ptr< dwVehicleStateChannelNewNode > create(ParameterProvider &provider)
static constexpr auto describeParameters()
static constexpr auto describeInputPorts()
static constexpr char8_t LOG_TAG[]
dwConstRigHandle_t rigHandle
constexpr std::tuple describeConstructorArguments()
FixedString< 32 > frameSkipMask
constexpr PassDescriptorT< 0 > describePass(dw::core::StringView &&name, dwProcessorType processorType)
constexpr auto describePassCollection(const Args &&... args) -> std::tuple< Args... >
constexpr auto describePortCollection(Args &&... args) -> dw::core::Tuple< Args... >