Loom 4 v4.5
Arduino library for Internet of Things Rapid Prototyping in environmental sensing
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
Loom_AS7263 Class Reference

#include <Loom_AS7263.h>

Inheritance diagram for Loom_AS7263:
Inheritance graph
[legend]
Collaboration diagram for Loom_AS7263:
Collaboration graph
[legend]

Public Member Functions

 Loom_AS7263 (Manager &man, bool useMux=false, int addr=0x49, uint8_t gain=1, uint8_t mode=3, uint8_t integration_time=50)
 
- Public Member Functions inherited from I2CDevice
 I2CDevice (const char *modName)
 
bool checkDeviceConnection ()
 
- Public Member Functions inherited from Module
 Module (const char *modName)
 
void setModuleName (const char *modName)
 
virtual const char * getModuleName ()
 
virtual void printModuleName (const char *message)
 
virtual void initialize ()=0
 
virtual void measure ()=0
 
virtual void package ()=0
 
virtual void power_up ()=0
 
virtual void power_down ()=0
 
virtual void display_data ()
 

Protected Member Functions

void power_down () override
 
void measure () override
 
void initialize () override
 
void package () override
 
void power_up () override
 

Additional Inherited Members

- Public Attributes inherited from I2CDevice
bool needsReinit = false
 
- Public Attributes inherited from Module
bool moduleInitialized = true
 
int module_address = -1
 

Detailed Description

AS7263 NIR sensor

Author
Will Richards

Constructor & Destructor Documentation

◆ Loom_AS7263()

Loom_AS7263::Loom_AS7263 ( Manager man,
bool  useMux = false,
int  addr = 0x49,
uint8_t  gain = 1,
uint8_t  mode = 3,
uint8_t  integration_time = 50 
)

Constructs a new TSL2591 sensor

Parameters
manReference to the manager that is used to universally package all data
useMuxIf this module will be using the mux
addressI2C address that is assigned to the sensor
gainGain level
modeRead Mode: 0("4 channels out of 6"), 1("Different 4 channels out of 6"), 2("All 6 channels continuously"), 3("One-shot reading of all channels")
integration_timeIntegration time (time will be 2.8ms * [integration value])

Member Function Documentation

◆ initialize()

void Loom_AS7263::initialize ( )
overrideprotectedvirtual

Implements Module.

◆ measure()

void Loom_AS7263::measure ( )
overrideprotectedvirtual

Implements Module.

◆ package()

void Loom_AS7263::package ( )
overrideprotectedvirtual

Implements Module.

◆ power_down()

void Loom_AS7263::power_down ( )
inlineoverrideprotectedvirtual

Implements Module.

◆ power_up()

void Loom_AS7263::power_up ( )
overrideprotectedvirtual

Implements Module.


The documentation for this class was generated from the following files: