VINCENZO Posted July 29, 2021 Report Share Posted July 29, 2021 I have to create a library that has as input the pointer to this structure unsigned char Type unsigned int Len union { unsigned char Raw [EFIUDS_MSG_MAX_DATA_SIZE] struct { unsigned char SI unsigned char PARAM [EFIUDS_MSG_MAX_DATA_SIZE-1] } REQUEST struct { unsigned char PR_SI unsigned char PARAM [EFIUDS_MSG_MAX_DATA_SIZE-1] } POSITIVE_RESPONSE struct { unsigned char NR_SI unsigned char SI unsigned char NRC } NEGATIVE_RESPONSE } Data how do i implement the labview? thank you Quote Link to comment
ensegre Posted July 29, 2021 Report Share Posted July 29, 2021 54 minutes ago, VINCENZO said: I have to create a library you mean create a LV library? Which kind of? Quote Link to comment
ShaunR Posted July 29, 2021 Report Share Posted July 29, 2021 Pass a U8 array of length EFIUDS_MSG_MAX_DATA_SIZE Unions are syntactic sugar for a single piece of contiguous memory. You'll just have to figure out how to interpret the data. Quote Link to comment
VINCENZO Posted July 30, 2021 Author Report Share Posted July 30, 2021 19 hours ago, ShaunR said: Pass a U8 array of length EFIUDS_MSG_MAX_DATA_SIZE Unions are syntactic sugar for a single piece of contiguous memory. You'll just have to figure out how to interpret the data. Ok, thank You! Quote Link to comment
Taylorh140 Posted August 4, 2021 Report Share Posted August 4, 2021 Be careful of Pragma pack when your trying to line things up for larger types. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.