#include <otSpectrometerShield.h>
Inheritance diagram for otSpectrometerShield:

Public Types | |
| typedef otSpectrometerShield::LightSource | LightSource |
| enum | { P_CK = 0x1000, P_ST = 0x2000, SPEC_CHANNELS = 288 } |
| enum | LightSource { SRC_LED = 0x4000, SRC_LASER = 0x8000, SRC_OFF = 0 } |
Public Member Functions | |
| otSpectrometerShield () | |
| void | init (otADS868x *adc, U8 addressIndex=0) |
| void | board (bool ena=true) |
| void | led (bool ena) |
| void | laser (bool ena) |
| void | setLightSource (LightSource src) |
| void | grabSpectral (U16 *ptr, U16 num=1) |
| void | grabPhotoDiode (U16 *ptr, U32 len, U32 delayUs) |
|
|
|
|
|
|
|
|
|
|
|
Create the class |
|
|
Enable or disable the shield
|
|
||||||||||||||||
|
Grab photodiode data
|
|
||||||||||||
|
Grab one or more spectral
|
|
||||||||||||
|
Init the library
|
|
|
Turn on/off the laser
|
|
|
Turn on/off the LED
|
|
|
Select the light source
|