mirror of
https://github.com/espressif/openthread.git
synced 2026-07-31 16:17:47 +00:00
[spinel] add spinel_command_t & spinel_capability_t types as uint32_t (#4402)
This commit is contained in:
committed by
Jonathan Hui
parent
943715c464
commit
bae83ddfbc
+2
-2
@@ -1116,7 +1116,7 @@ spinel_ssize_t spinel_datatype_vpack(uint8_t * data_out,
|
||||
|
||||
// LCOV_EXCL_START
|
||||
|
||||
const char *spinel_command_to_cstr(unsigned int command)
|
||||
const char *spinel_command_to_cstr(spinel_command_t command)
|
||||
{
|
||||
const char *ret = "UNKNOWN";
|
||||
|
||||
@@ -2422,7 +2422,7 @@ const char *spinel_status_to_cstr(spinel_status_t status)
|
||||
return ret;
|
||||
}
|
||||
|
||||
const char *spinel_capability_to_cstr(unsigned int capability)
|
||||
const char *spinel_capability_to_cstr(spinel_capability_t capability)
|
||||
{
|
||||
const char *ret = "UNKNOWN";
|
||||
|
||||
|
||||
+6
-2
@@ -994,6 +994,8 @@ enum
|
||||
SPINEL_CMD_EXPERIMENTAL__END = 2097152,
|
||||
};
|
||||
|
||||
typedef uint32_t spinel_command_t;
|
||||
|
||||
enum
|
||||
{
|
||||
SPINEL_CAP_LOCK = 1,
|
||||
@@ -1081,6 +1083,8 @@ enum
|
||||
SPINEL_CAP_EXPERIMENTAL__END = 2097152,
|
||||
};
|
||||
|
||||
typedef uint32_t spinel_capability_t;
|
||||
|
||||
/**
|
||||
* Property Keys
|
||||
*
|
||||
@@ -4075,7 +4079,7 @@ SPINEL_API_EXTERN const char *spinel_next_packed_datatype(const char *pack_forma
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
SPINEL_API_EXTERN const char *spinel_command_to_cstr(unsigned int command);
|
||||
SPINEL_API_EXTERN const char *spinel_command_to_cstr(spinel_command_t command);
|
||||
|
||||
SPINEL_API_EXTERN const char *spinel_prop_key_to_cstr(spinel_prop_key_t prop_key);
|
||||
|
||||
@@ -4085,7 +4089,7 @@ SPINEL_API_EXTERN const char *spinel_mcu_power_state_to_cstr(spinel_mcu_power_st
|
||||
|
||||
SPINEL_API_EXTERN const char *spinel_status_to_cstr(spinel_status_t status);
|
||||
|
||||
SPINEL_API_EXTERN const char *spinel_capability_to_cstr(unsigned int capability);
|
||||
SPINEL_API_EXTERN const char *spinel_capability_to_cstr(spinel_capability_t capability);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user