|
Wirepas SDK
|
|
Go to the documentation of this file.
25 #ifndef APP_LIB_SYSTEM_H_
26 #define APP_LIB_SYSTEM_H_
35 #define APP_LIB_SYSTEM_NAME 0x77db1bd5
38 #define APP_LIB_SYSTEM_VERSION 0x201
46 #define APP_LIB_SYSTEM_STOP_PERIODIC UINT32_MAX
54 #define APP_LIB_SYSTEM_IRQ_PRIO_HI 0
55 #define APP_LIB_SYSTEM_IRQ_PRIO_LO 1
293 uint32_t initial_delay_us,
294 uint32_t execution_time_us);
528 size_t info_num_bytes);
Radio information structure.
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_RESERVED_14
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_UNKNOWN
void(* app_lib_system_startup_cb_f)(void)
Startup callback.
List of library functions.
app_res_e(* app_lib_system_register_app_irq_table_f)(app_lib_system_irq_handler_f *table_p)
Register an interrupt handler table for the app.
void(* app_lib_system_enter_critical_section_f)(void)
Enter a critical section.
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_SUB_INDIA865
void(* app_lib_system_shutdown_cb_f)(void)
Shutdown callback.
app_res_e(* app_lib_system_disable_app_irq_f)(uint8_t irq_n)
Disable an app interrupt.
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_RESERVED_9
app_lib_system_clear_pending_fast_app_irq_f clearPendingFastAppIrq
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_NRF52840
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_EFR32XG23
app_lib_system_set_startup_cb_f setStartupCb
uint32_t protocol_profile
app_res_e(* app_lib_system_enable_fast_app_irq_f)(uint8_t irq_n, uint8_t priority)
Enable a fast app interrupt.
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_EFR32XG12
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_EFR32XG22
@ APP_LIB_SYSTEM_HARDWARE_RESERVED_5
uint32_t(* app_lib_system_get_bootloader_version_f)(void)
Get bootloader version.
app_res_e(* app_lib_system_set_periodic_cb_f)(app_lib_system_periodic_cb_f work_cb, uint32_t initial_delay_us, uint32_t execution_time_us)
Set the periodic callback.
app_res_e(* app_lib_system_set_startup_cb_f)(app_lib_system_startup_cb_f startup_cb)
Set a callback to be called when the system starts up.
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_EFR32XG21
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_NRF9160
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_BGM220PC22HNA
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_RESERVED_15
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_EFR32XG12_512
app_res_e(* app_lib_system_get_radio_info_f)(app_lib_system_radio_info_t *info_p, size_t info_num_bytes)
Return radio hardware and platform information.
uint32_t(* app_lib_system_periodic_cb_f)(void)
Periodic callback.
app_lib_system_disable_app_irq_f disableAppIrq
app_lib_system_hardware_magic_e
Radio hardware magic number.
@ APP_LIB_SYSTEM_HARDWARE_RESERVED_1
app_lib_system_enter_critical_section_f enterCriticalSection
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_RESERVED_5
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_UNKNOWN
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_RESERVED_2
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_SUB_AUS915
@ APP_LIB_SYSTEM_HARDWARE_RESERVED_2
app_lib_system_exit_critical_section_f exitCriticalSection
app_res_e(* app_lib_system_disable_deep_sleep)(bool disable)
Disable/Enable deep sleep on stack.
app_lib_system_disable_deep_sleep disableDeepSleep
app_lib_system_enable_app_irq_with_handler_f enableAppIrq
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_RESERVED_7
app_lib_system_get_bootloader_version_f getBootloaderVersion
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_RESERVED_10
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_ISM_24GHZ
app_lib_system_set_shutdown_cb_f setShutdownCb
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_EFR32XG24
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_BGM220SC22HNA
app_res_e(* app_lib_system_set_shutdown_cb_f)(app_lib_system_shutdown_cb_f shutdown_cb)
Set a callback to be called just before the system shuts down.
app_lib_system_protocol_profile_e
Protocol profiles.
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_RESERVED_6
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_NRF52832
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_NRF9120
@ APP_LIB_SYSTEM_HARDWARE_RESERVED_4
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_NRF52833
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_RESERVED_13
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_RESERVED_3
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_RESERVED_4
void(* app_lib_system_exit_critical_section_f)(void)
Exit a critical section.
app_res_e(* app_lib_system_enable_app_irq_with_handler_f)(bool fast, uint8_t irq_n, uint8_t priority, app_lib_system_irq_handler_f handler)
Enable a platform-specific interrupt with given handler and priority.
app_res_e(* app_lib_system_clear_pending_fast_app_irq_f)(uint8_t irq_n)
Clear fast interrupt flag from NVIC.
app_lib_system_get_radio_info_f getRadioInfo
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_DECT_TS_103_874_2
void(* app_lib_system_irq_handler_f)(void)
Interrupt handler callback.
app_res_e(* app_lib_system_enable_app_irq_f)(uint8_t irq_n)
Enable an app interrupt.
app_lib_system_set_periodic_cb_f setPeriodicCb
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_EFR32XG13