Hi!
I've a native function to call a device side API which expects an array as an argument. Sample code as follows:
var uint32 NoOfDataLogToDelete = 100;
array uint32 DataLogNum[1] ;
DataLogNum[0] = 0;
$if !$prototyper
native (DataLogNum, NoOfDataLogToDelete )
{
DataLogDeleteByLogNumbers(DataLogNum, NoOfDataLogToDelete) ;
}
$endif
When I do like this, I'm getting a compilation warning as follows:
incompatible pointer types passing 'XUInt32[1]' (aka 'unsigned long[1]') to parameter of type 'uint32_t *' (aka 'unsigned int *') [-Wincompatible-pointer-types]
Even though embedded wizard side variable and Device side variable are same data types (uint32) it gives warming. Now my question is Can I pass Embedded wizard array to Device side API as an argument? What mistake I'm making here?
Thank you