Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_module_sensor.h
1 #ifndef _BC_MODULE_SENSOR_H
2 #define _BC_MODULE_SENSOR_H
3 
4 #include <bc_gpio.h>
5 
9 
11 
12 typedef enum
13 {
16 
19 
22 
24 
26 
27 typedef enum
28 {
31 
34 
37 
40 
43 
45 
47 
48 typedef enum
49 {
52 
55 
57 
59 
60 typedef enum
61 {
64 
67 
70 
72 
76 
77 bool bc_module_sensor_init(void);
78 
80 
81 void bc_module_sensor_deinit(void);
82 
88 
90 
94 
96 
100 
102 
106 
108 
112 
114 
118 
120 
124 
126 
129 
131 
136 
137 bool bc_module_sensor_set_vdd(bool on);
138 
140 
142 
144 
146 
150 
152 
156 
158 
160 
161 
162 #endif // _BC_MODULE_SENSOR_H
Channel has pull-up 4k7.
bool bc_module_sensor_set_pull(bc_module_sensor_channel_t channel, bc_module_sensor_pull_t pull)
Set pull of Sensor Module channel.
GPIO channel has no pull-up/pull-down.
Definition: bc_gpio.h:84
Channel has no pull.
GPIO channel has pull-up.
Definition: bc_gpio.h:87
void bc_module_sensor_deinit(void)
Deinitialize Sensor Module.
int bc_module_sensor_get_output(bc_module_sensor_channel_t channel)
Get output state for Sensor Module channel.
Channel operates as output.
bc_module_sensor_mode_t
Sensor Module mode of operation.
bc_module_sensor_revision_t
Sensor Module hardware revision.
bc_module_sensor_revision_t bc_module_sensor_get_revision(void)
Get Sensor Module revision.
bool bc_module_sensor_set_vdd(bool on)
Set VDD On / Off.
int bc_module_sensor_get_input(bc_module_sensor_channel_t channel)
Get input of Sensor Module channel.
void bc_module_sensor_toggle_output(bc_module_sensor_channel_t channel)
Toggle output state for Sensor Module channel.
bc_module_sensor_pull_t
Sensor module pull.
bool bc_module_sensor_onewire_power_down(void)
Semaphore for 1Wire Power down: for R1.1 set VDD Off, for R1.0 pull none on channel A...
Hardware revision R1.0.
GPIO channel operates as input.
Definition: bc_gpio.h:99
bc_module_sensor_pull_t bc_module_sensor_get_pull(bc_module_sensor_channel_t channel)
Get pull-up/pull-down configuration for Sensor Module channel.
void bc_module_sensor_onewire_init(void)
Initialize 1-Wire on channel B.
Channel operates as input.
void bc_module_sensor_set_mode(bc_module_sensor_channel_t channel, bc_module_sensor_mode_t mode)
Set output mode of Sensor Module channel.
Hardware revision unknown.
void bc_module_sensor_set_output(bc_module_sensor_channel_t channel, int state)
Set output state of Sensor Module channel.
GPIO channel has pull-down.
Definition: bc_gpio.h:90
Hardware revision R1.1.
Channel has internal pull-down.
Channel has internal pull-up.
Channel has pull-up 56R.
bc_module_sensor_channel_t
Sensor Module channels.
bool bc_module_sensor_init(void)
Initialize Sensor Module.
bool bc_module_sensor_onewire_power_up(void)
Semaphore for 1Wire Power up: for R1.1 set VDD On, for R1.0 pull up 56R on channel A...
bc_module_sensor_mode_t bc_module_sensor_get_mode(bc_module_sensor_channel_t channel)
Get mode of operation for Sensor Module channel.
GPIO channel operates as output.
Definition: bc_gpio.h:102