Skip to content

Commit

Permalink
updated fidl
Browse files Browse the repository at this point in the history
  • Loading branch information
Lagavulin9 committed May 30, 2024
1 parent b1ad5f3 commit 88fc56b
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 24 deletions.
5 changes: 2 additions & 3 deletions fidl/CanTransceiver.fidl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ interface CanTransceiver {
attribute UInt32 rpm readonly

struct SonarArrayStruct {
UInt32 sensorfrontleft
UInt32 sensorfrontmiddle
UInt32 sensorfrontright
UInt32 sensorfront
UInt32 sensorrear
}
}
24 changes: 10 additions & 14 deletions src-gen/core/v0/commonapi/CanTransceiver.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file was generated by the CommonAPI Generators.
* Used org.genivi.commonapi.core 3.2.14.v202310241605.
* Used org.genivi.commonapi.core 3.2.0.v202012010850.
* Used org.franca.core 0.13.1.201807231814.
*
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
Expand Down Expand Up @@ -39,28 +39,24 @@ class CanTransceiver {

static inline const char* getInterface();
static inline CommonAPI::Version getInterfaceVersion();
struct SonarArrayStruct : CommonAPI::Struct< uint32_t, uint32_t, uint32_t> {
struct SonarArrayStruct : CommonAPI::Struct< uint32_t, uint32_t> {

SonarArrayStruct()
{
std::get< 0>(values_) = 0ul;
std::get< 1>(values_) = 0ul;
std::get< 2>(values_) = 0ul;
}
SonarArrayStruct(const uint32_t &_sensorfrontleft, const uint32_t &_sensorfrontmiddle, const uint32_t &_sensorfrontright)
SonarArrayStruct(const uint32_t &_sensorfront, const uint32_t &_sensorrear)
{
std::get< 0>(values_) = _sensorfrontleft;
std::get< 1>(values_) = _sensorfrontmiddle;
std::get< 2>(values_) = _sensorfrontright;
std::get< 0>(values_) = _sensorfront;
std::get< 1>(values_) = _sensorrear;
}
inline const uint32_t &getSensorfrontleft() const { return std::get< 0>(values_); }
inline void setSensorfrontleft(const uint32_t &_value) { std::get< 0>(values_) = _value; }
inline const uint32_t &getSensorfrontmiddle() const { return std::get< 1>(values_); }
inline void setSensorfrontmiddle(const uint32_t &_value) { std::get< 1>(values_) = _value; }
inline const uint32_t &getSensorfrontright() const { return std::get< 2>(values_); }
inline void setSensorfrontright(const uint32_t &_value) { std::get< 2>(values_) = _value; }
inline const uint32_t &getSensorfront() const { return std::get< 0>(values_); }
inline void setSensorfront(const uint32_t &_value) { std::get< 0>(values_) = _value; }
inline const uint32_t &getSensorrear() const { return std::get< 1>(values_); }
inline void setSensorrear(const uint32_t &_value) { std::get< 1>(values_) = _value; }
inline bool operator==(const SonarArrayStruct& _other) const {
return (getSensorfrontleft() == _other.getSensorfrontleft() && getSensorfrontmiddle() == _other.getSensorfrontmiddle() && getSensorfrontright() == _other.getSensorfrontright());
return (getSensorfront() == _other.getSensorfront() && getSensorrear() == _other.getSensorrear());
}
inline bool operator!=(const SonarArrayStruct &_other) const {
return !((*this) == _other);
Expand Down
4 changes: 2 additions & 2 deletions src-gen/core/v0/commonapi/CanTransceiverProxy.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file was generated by the CommonAPI Generators.
* Used org.genivi.commonapi.core 3.2.14.v202310241605.
* Used org.genivi.commonapi.core 3.2.0.v202012010850.
* Used org.franca.core 0.13.1.201807231814.
*
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
Expand Down Expand Up @@ -38,7 +38,7 @@ class CanTransceiverProxy
CanTransceiverProxy(std::shared_ptr<CommonAPI::Proxy> delegate);
~CanTransceiverProxy();

typedef ::v0::commonapi::CanTransceiver InterfaceType;
typedef CanTransceiver InterfaceType;


/**
Expand Down
2 changes: 1 addition & 1 deletion src-gen/core/v0/commonapi/CanTransceiverProxyBase.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file was generated by the CommonAPI Generators.
* Used org.genivi.commonapi.core 3.2.14.v202310241605.
* Used org.genivi.commonapi.core 3.2.0.v202012010850.
* Used org.franca.core 0.13.1.201807231814.
*
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
Expand Down
4 changes: 2 additions & 2 deletions src-gen/core/v0/commonapi/CanTransceiverStub.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file was generated by the CommonAPI Generators.
* Used org.genivi.commonapi.core 3.2.14.v202310241605.
* Used org.genivi.commonapi.core 3.2.0.v202012010850.
* Used org.franca.core 0.13.1.201807231814.
*
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
Expand Down Expand Up @@ -176,7 +176,7 @@ class CanTransceiverStub
typedef CommonAPI::Stub<CanTransceiverStubAdapter, CanTransceiverStubRemoteEvent>::StubAdapterType StubAdapterType;
typedef CommonAPI::Stub<CanTransceiverStubAdapter, CanTransceiverStubRemoteEvent>::RemoteEventHandlerType RemoteEventHandlerType;
typedef CanTransceiverStubRemoteEvent RemoteEventType;
typedef ::v0::commonapi::CanTransceiver StubInterface;
typedef CanTransceiver StubInterface;
};

} // namespace commonapi
Expand Down
2 changes: 1 addition & 1 deletion src-gen/core/v0/commonapi/CanTransceiverStubDefault.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file was generated by the CommonAPI Generators.
* Used org.genivi.commonapi.core 3.2.14.v202310241605.
* Used org.genivi.commonapi.core 3.2.0.v202012010850.
* Used org.franca.core 0.13.1.201807231814.
*
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ namespace CanTransceiver_ {

// Interface-specific deployment types
typedef CommonAPI::SomeIP::StructDeployment<
CommonAPI::SomeIP::IntegerDeployment<uint32_t>,
CommonAPI::SomeIP::IntegerDeployment<uint32_t>,
CommonAPI::SomeIP::IntegerDeployment<uint32_t>
> SonarArrayStructDeployment_t;
Expand Down

0 comments on commit 88fc56b

Please sign in to comment.