Utilities#
Macros#
#define
exit (exitcode)
Exit from thread wrapper.
#define
msleep (milis)
Milisec sleep wrapper.
#define
assert_res (val, message)
Assert POSIX API result with thread exit.
Function Documentation#
app_wisun_wait_for_connection#
void app_wisun_wait_for_connection (void )
Waiting for the connection.
Parameters
N/A |
This function doesn't call the app core connect function.
Definition at line
98
of file C:/SiliconLabs/SimplicityStudio/v5/developer/sdks/gecko_sdk_suite/v3.2/app/wisun/component/app_core/sl_wisun_app_util.h
app_wisun_connect_and_wait#
void app_wisun_connect_and_wait (void )
Connect and wait for connection.
Parameters
N/A |
The function calls app core connect function and waiting loop function.
Definition at line
104
of file C:/SiliconLabs/SimplicityStudio/v5/developer/sdks/gecko_sdk_suite/v3.2/app/wisun/component/app_core/sl_wisun_app_util.h
Macro Definition Documentation#
exit#
#define exitValue:
do { \
printf("[%s] Exit: %d\n", \
osThreadGetName(osThreadGetId()), (exitcode)); \
osThreadTerminate(osThreadGetId()); \
} while (0)
Exit from thread wrapper.
Definition at line
60
of file C:/SiliconLabs/SimplicityStudio/v5/developer/sdks/gecko_sdk_suite/v3.2/app/wisun/component/app_core/sl_wisun_app_util.h
msleep#
#define msleepValue:
do { \
osDelay((milis)); \
} while (0)
Milisec sleep wrapper.
Definition at line
70
of file C:/SiliconLabs/SimplicityStudio/v5/developer/sdks/gecko_sdk_suite/v3.2/app/wisun/component/app_core/sl_wisun_app_util.h
assert_res#
#define assert_resValue:
do { \
printf("%s [%ld] %s.\n", message, (int32_t)val, (val == -1) ? "error" : "done"); \
if ((val) == -1) { \
exit(-1); \
} \
} while (0)
Assert POSIX API result with thread exit.
Definition at line
78
of file C:/SiliconLabs/SimplicityStudio/v5/developer/sdks/gecko_sdk_suite/v3.2/app/wisun/component/app_core/sl_wisun_app_util.h