 |
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
267 uint32_t initial_delay_us,
268 uint32_t execution_time_us);
502 size_t info_num_bytes);
void(* app_lib_system_startup_cb_f)(void)
Startup callback.
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_SUB_BRAZIL_915_MHZ
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_SUB_868_MHZ
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_SUB_INDIA_865_MHZ
uint32_t protocol_profile
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_SUB_915_MHZ
Radio information structure.
app_res_e(* app_lib_system_enable_app_irq_f)(uint8_t irq_n)
Enable an app interrupt.
void(* app_lib_system_exit_critical_section_f)(void)
Exit a critical section.
app_res_e(* app_lib_system_disable_app_irq_f)(uint8_t irq_n)
Disable an app interrupt.
app_lib_system_clear_pending_fast_app_irq_f clearPendingFastAppIrq
app_lib_system_exit_critical_section_f exitCriticalSection
app_lib_system_enter_critical_section_f enterCriticalSection
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.
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_UNKNOWN
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_EFR32XG12
app_lib_system_enable_app_irq_with_handler_f enableAppIrq
uint32_t(* app_lib_system_periodic_cb_f)(void)
Periodic callback.
app_lib_system_set_periodic_cb_f setPeriodicCb
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_RESERVED_6
app_lib_system_disable_app_irq_f disableAppIrq
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_EFR32XG12_512
@ APP_LIB_SYSTEM_HARDWARE_RESERVED_1
app_lib_system_set_shutdown_cb_f setShutdownCb
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.
void(* app_lib_system_enter_critical_section_f)(void)
Enter a critical section.
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_RESERVED_9
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_NRF52840
app_lib_system_get_radio_info_f getRadioInfo
app_lib_system_set_startup_cb_f setStartupCb
@ APP_LIB_SYSTEM_HARDWARE_RESERVED_4
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.
uint32_t(* app_lib_system_get_bootloader_version_f)(void)
Get bootloader version.
@ APP_LIB_SYSTEM_HARDWARE_RESERVED_2
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_irq_handler_f)(void)
Interrupt handler callback.
app_lib_system_get_bootloader_version_f getBootloaderVersion
List of library functions.
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_NRF52832
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_RESERVED_4
@ APP_LIB_SYSTEM_HARDWARE_MAGIC_UNKNOWN
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_LIB_SYSTEM_PROTOCOL_PROFILE_RESERVED_7
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_SUB_AUS_915_MHZ
app_res_e(* app_lib_system_disable_deep_sleep)(bool disable)
Disable/Enable deep sleep on stack.
@ APP_LIB_SYSTEM_PROTOCOL_PROFILE_ISM_24GHZ
void(* app_lib_system_shutdown_cb_f)(void)
Shutdown callback.
app_lib_system_protocol_profile_e
Protocol profiles.
app_lib_system_disable_deep_sleep disableDeepSleep
app_lib_system_hardware_magic_e
Radio hardware magic number.
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_EFR32XG13
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_SUB_KOREA_917_MHZ
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_HARDWARE_MAGIC_NRF52833