ads1115

package
v0.0.0-...-6b1210f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONVERSION_REGISTER_ADDRESS = byte(0x0)
	CONFIG_RREGISTER_ADDRESS    = byte(0x1)
	LO_THRESH_REGISTER_ADDRESS  = byte(0x2)
	HI_THRESH_REGISTER_ADDRESS  = byte(0x3)
	CHANNEL_0                   = byte(0b01000000)
	CHANNEL_1                   = byte(0b01010000)
	CHANNEL_2                   = byte(0b01100000)
	CHANNEL_3                   = byte(0b01110000)
	AMP_FS_6                    = byte(0b00000000)
	AMP_FS_4                    = byte(0b00000010)
	AMP_FS_2                    = byte(0b00000100)
	AMP_FS_1                    = byte(0b00000110)
	DATA_RATE_8SPS              = byte(0b00000000)
	DATA_RATE_16SPS             = byte(0b00100000)
	DATA_RATE_32SPS             = byte(0b01000000)
	DATA_RATE_64SPS             = byte(0b01100000)
	DATA_RATE_128SPS            = byte(0b10000000)
	COMP_QUE                    = byte(0b00000011)
)
View Source
const ADS1X15_REG_CONFIG_CQUE_1CONV = 0x0000
View Source
const ADS1X15_REG_CONFIG_MODE_SINGLE = 0x0100
View Source
const ADS1X15_REG_CONFIG_MUX_SINGLE_0 = 0x4000 ///< Single-ended AIN0
View Source
const ADS1X15_REG_CONFIG_MUX_SINGLE_1 = 0x5000 ///< Single-ended AIN1
View Source
const ADS1X15_REG_CONFIG_MUX_SINGLE_2 = 0x6000 ///< Single-ended AIN2
View Source
const ADS1X15_REG_CONFIG_MUX_SINGLE_3 = 0x7000 ///< Single-ended AIN3
View Source
const ADS1X15_REG_CONFIG_OS_SINGLE = 0x8000
View Source
const ADS1X15_REG_POINTER_CONFIG = byte(0x01) ///< Configuration
View Source
const ADS1X15_REG_POINTER_CONVERT = byte(0x00) ///< Conversion
View Source
const ADS1X15_REG_POINTER_HITHRESH = byte(0x03) ///< High threshold
View Source
const ADS1X15_REG_POINTER_LOWTHRESH = byte(0x02) ///< Low threshold
View Source
const ADS1X15_REG_POINTER_MASK = byte(0x03) ///< Point mask

Variables

Functions

func NewADS1115

func NewADS1115(i2cDev *i2c.Dev) *ads1115AtoD

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL