Is there a way to get multiple parameters back from an interop call in nanoFramework

57 views Asked by At

I am trying to get multiple parameters from a struct in a single interop call. The struct in question has the following signature:

struct struct_name
{
    uint16_t param0;
    uint8_t param1;
    uint8_t param2;
    uint8_t *param3;
};

and I am trying to get all of these parameters into managed c# code.

1

There are 1 answers

2
José Simões On BEST ANSWER

That's an "advanced" usage scenario that's not supported currently. Only base CLR types can be used in Interop. You have to have those as individual params passed with ref.