This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Generic level status message parameters

Hi, 

I was going through generic_level_messages.h and generic_level_common.h files looking for the parameters for generic level status message.

I noticed that generic_level_messages.h has "remaining_time" parameter set as a 8-bit parameter whereas generic_level_common.h has "remaining_time_ms" parameter set as a 32-bit parameter.

In Segger IDE, I notice that the "generic_level_status_params_t" from generic_level_common.h is getting referenced a lot in the project(in generic_level_server.c/.h; app_level.c) as shown below and "generic_level_status_msg_pkt_t" from generic_level_messages.h is being referenced only once.

Why is that parameter(remaining_time_ms) defined as a 32-bit value instead of a 8-bit value when the specifications say it has to be a 8-bit value(which is satisfied in the message packet format)?? Why does the SDK have two different length for same parameter though one is in milliseconds and the other is not?

Thank you.

Parents Reply Children
No Data
Related