forked from opendata-stuttgart/sensors-software
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
102 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// I2C address for the module | ||
#define DBM_ADDR 0x48 | ||
|
||
// Device registers | ||
#define DBM_REG_VERSION 0x00 | ||
#define DBM_REG_ID3 0x01 | ||
#define DBM_REG_ID2 0x02 | ||
#define DBM_REG_ID1 0x03 | ||
#define DBM_REG_ID0 0x04 | ||
#define DBM_REG_SCRATCH 0x05 | ||
#define DBM_REG_CONTROL 0x06 | ||
#define DBM_REG_TAVG_HIGH 0x07 | ||
#define DBM_REG_TAVG_LOW 0x08 | ||
#define DBM_REG_RESET 0x09 | ||
#define DBM_REG_DECIBEL 0x0A | ||
#define DBM_REG_MIN 0x0B | ||
#define DBM_REG_MAX 0x0C | ||
#define DBM_REG_THR_MIN 0x0D | ||
#define DBM_REG_THR_MAX 0x0E | ||
#define DBM_REG_HISTORY_0 0x14 | ||
#define DBM_REG_HISTORY_99 0x77 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters