I2C_device_Arduino
0.2
An I²C utility class for Arduino
Loading...
Searching...
No Matches
src
test_LM75B.h
Go to the documentation of this file.
1
10
#ifndef ARDUINO_TEMP_SENSOR_H
11
#define ARDUINO_TEMP_SENSOR_H
12
13
#include <Arduino.h>
14
#include <stdint.h>
15
16
#include "
I2C_device.h
"
17
28
class
test_LM75B
:
public
I2C_device
29
{
30
public
:
31
enum
mode
{
32
COMPARATOR
,
33
INTERRUPT
,
34
};
35
37
enum
reg_num
{
38
Temp
,
39
Conf
,
40
Thyst
,
41
Tos
,
42
};
43
48
test_LM75B
( uint8_t i2c_address = (0x90 >> 1) );
49
52
~test_LM75B
();
53
58
float
read
(
void
);
59
68
void
thresholds
(
float
v0,
float
v1 );
69
74
void
os_mode
(
mode
flag );
75
};
76
77
#endif
// ARDUINO_TEMP_SENSOR_H
I2C_device.h
I2C_device
Definition:
I2C_device.h:21
test_LM75B
Definition:
test_LM75B.h:29
test_LM75B::~test_LM75B
~test_LM75B()
Definition:
test_LM75B.cpp:11
test_LM75B::thresholds
void thresholds(float v0, float v1)
Definition:
test_LM75B.cpp:20
test_LM75B::reg_num
reg_num
Definition:
test_LM75B.h:37
test_LM75B::Tos
@ Tos
Definition:
test_LM75B.h:41
test_LM75B::Thyst
@ Thyst
Definition:
test_LM75B.h:40
test_LM75B::Temp
@ Temp
Definition:
test_LM75B.h:38
test_LM75B::Conf
@ Conf
Definition:
test_LM75B.h:39
test_LM75B::read
float read(void)
Definition:
test_LM75B.cpp:15
test_LM75B::os_mode
void os_mode(mode flag)
Definition:
test_LM75B.cpp:29
test_LM75B::mode
mode
Definition:
test_LM75B.h:31
test_LM75B::COMPARATOR
@ COMPARATOR
Definition:
test_LM75B.h:32
test_LM75B::INTERRUPT
@ INTERRUPT
Definition:
test_LM75B.h:33
Generated by
1.9.6