Wirepas SDK
wms_hardware.h
Go to the documentation of this file.
1 /* Copyright 2017 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
28 #ifndef APP_LIB_HARDWARE_H_
29 #define APP_LIB_HARDWARE_H_
30 
31 #include <stdlib.h>
32 #include <stdint.h>
33 #include <stdbool.h>
34 
35 #include "wms_app.h"
36 
38 #define APP_LIB_HARDWARE_NAME 0x014eff15
39 
40 
41 #define APP_LIB_HARDWARE_VERSION 0x203
42 
51 typedef enum
52 {
56 
66 typedef app_res_e
68 
79 typedef app_res_e
81 
102 typedef app_res_e
104  bool * activated_p,
105  uint32_t timeout_us);
106 
107 
111 typedef struct
112 {
117 
118 #endif /* APP_LIB_HARDWARE_H_ */
app_lib_hardware_is_peripheral_activated_f
app_res_e(* app_lib_hardware_is_peripheral_activated_f)(app_lib_hardware_activable_peripheral_e peripheral, bool *activated_p, uint32_t timeout_us)
Request for peripheral status.
Definition: wms_hardware.h:103
app_res_e
app_res_e
Definition: wms_app.h:201
app_lib_hardware_t::deactivatePeripheral
app_lib_hardware_deactivate_peripheral_f deactivatePeripheral
Definition: wms_hardware.h:114
wms_app.h
app_lib_hardware_activable_peripheral_e
app_lib_hardware_activable_peripheral_e
Hardware peripherals to activate.
Definition: wms_hardware.h:51
app_lib_hardware_deactivate_peripheral_f
app_res_e(* app_lib_hardware_deactivate_peripheral_f)(app_lib_hardware_activable_peripheral_e peripheral)
Request for peripheral deactivation.
Definition: wms_hardware.h:80
app_lib_hardware_t
List of library functions.
Definition: wms_hardware.h:111
app_lib_hardware_activate_peripheral_f
app_res_e(* app_lib_hardware_activate_peripheral_f)(app_lib_hardware_activable_peripheral_e peripheral)
Request for peripheral activation.
Definition: wms_hardware.h:67
app_lib_hardware_t::isPeripheralActivated
app_lib_hardware_is_peripheral_activated_f isPeripheralActivated
Definition: wms_hardware.h:115
APP_LIB_HARDWARE_PERIPHERAL_HFXO
@ APP_LIB_HARDWARE_PERIPHERAL_HFXO
Definition: wms_hardware.h:54
app_lib_hardware_t::activatePeripheral
app_lib_hardware_activate_peripheral_f activatePeripheral
Definition: wms_hardware.h:113