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 
21 
23 
24 typedef enum
25 {
28 
31 
34 
37 
40 
42 
44 
45 typedef enum
46 {
49 
52 
54 
56 
57 typedef enum
58 {
61 
64 
67 
69 
73 
74 bool bc_module_sensor_init(void);
75 
77 
78 void bc_module_sensor_deinit(void);
79 
85 
87 
91 
93 
97 
99 
103 
105 
109 
111 
115 
117 
121 
123 
126 
128 
133 
134 bool bc_module_sensor_set_vdd(bool on);
135 
137 
139 
141 
143 
147 
149 
153 
155 
157 
158 
159 #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.
Channel has no pull.
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.
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