mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Merge "Additional test cases to verify multi-dimensional arrays work properly." am: ed76563377
am: 551f714f93
Change-Id: I0cfa94791445d91b9502f4fdf5aa2d295460f874
This commit is contained in:
@@ -43,4 +43,5 @@ interface IBase {
|
||||
someMethodWithFooVectors(vec<Foo> fooInput) generates (vec<Foo> fooOutput);
|
||||
|
||||
transpose(StringMatrix5x3 in) generates (StringMatrix3x5 out);
|
||||
transpose2(ThreeStrings[5] in) generates (FiveStrings[3] out);
|
||||
};
|
||||
|
||||
@@ -61,6 +61,17 @@ interface IFoo {
|
||||
ThreeQuuxes[5] quuxMatrix;
|
||||
};
|
||||
|
||||
typedef string[3] ThreeStrings;
|
||||
typedef string[5] FiveStrings;
|
||||
|
||||
struct StringMatrix3x5 {
|
||||
FiveStrings[3] s;
|
||||
};
|
||||
|
||||
struct StringMatrix5x3 {
|
||||
ThreeStrings[5] s;
|
||||
};
|
||||
|
||||
doThis(float param);
|
||||
doThatAndReturnSomething(int64_t param) generates (int32_t result);
|
||||
doQuiteABit(int32_t a, int64_t b, float c, double d) generates (double something);
|
||||
@@ -81,4 +92,7 @@ interface IFoo {
|
||||
|
||||
transposeMe(FiveFloats[3] in) generates (ThreeFloats[5] out);
|
||||
callingDrWho(MultiDimensional in) generates (MultiDimensional out);
|
||||
|
||||
transpose(StringMatrix5x3 in) generates (StringMatrix3x5 out);
|
||||
transpose2(ThreeStrings[5] in) generates (FiveStrings[3] out);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user