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 
52 typedef enum
53 {
57 
67 typedef app_res_e
69 
80 typedef app_res_e
82 
103 typedef app_res_e
105  bool * activated_p,
106  uint32_t timeout_us);
107 
108 
112 typedef struct
113 {
118 
119 #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:104
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:115
wms_app.h
app_lib_hardware_activable_peripheral_e
app_lib_hardware_activable_peripheral_e
Hardware peripherals to activate.
Definition: wms_hardware.h:52
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:81
app_lib_hardware_t
List of library functions.
Definition: wms_hardware.h:112
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:68
app_lib_hardware_t::isPeripheralActivated
app_lib_hardware_is_peripheral_activated_f isPeripheralActivated
Definition: wms_hardware.h:116
APP_LIB_HARDWARE_PERIPHERAL_HFXO
@ APP_LIB_HARDWARE_PERIPHERAL_HFXO
Definition: wms_hardware.h:55
app_lib_hardware_t::activatePeripheral
app_lib_hardware_activate_peripheral_f activatePeripheral
Definition: wms_hardware.h:114