Sebastien Luzy / Mbed OS Code_capteur-APDS9960_ecran-STM32F746G-DISCO

Dependencies:   TS_DISCO_F746NG LCD_DISCO_F746NG BSP_DISCO_F746NG BUTTON_GROUP

Embed: (wiki syntax)

« Back to documentation index

Adafruit_APDS9960.h File Reference

Adafruit_APDS9960.h File Reference

Go to the source code of this file.

Data Structures

class  Adafruit_APDS9960
 Class that stores state and functions for interacting with APDS9960 Sensor. More...

Enumerations

enum  
 

I2C Registers.

More...
enum  apds9960AGain_t { APDS9960_AGAIN_1X = 0x00, APDS9960_AGAIN_4X = 0x01, APDS9960_AGAIN_16X = 0x02, APDS9960_AGAIN_64X = 0x03 }
 

ADC gain settings.

More...
enum  apds9960PGain_t { APDS9960_PGAIN_1X = 0x00, APDS9960_PGAIN_2X = 0x04, APDS9960_PGAIN_4X = 0x08, APDS9960_PGAIN_8X = 0x0C }
 

Proxmity gain settings.

More...
enum  apds9960PPulseLen_t { APDS9960_PPULSELEN_4US = 0x00, APDS9960_PPULSELEN_8US = 0x40, APDS9960_PPULSELEN_16US = 0x80, APDS9960_PPULSELEN_32US = 0xC0 }
 

Pulse length settings.

More...
enum  apds9960LedDrive_t { APDS9960_LEDDRIVE_100MA = 0x00, APDS9960_LEDDRIVE_50MA = 0x40, APDS9960_LEDDRIVE_25MA = 0x80, APDS9960_LEDDRIVE_12MA = 0xC0 }
 

LED drive settings.

More...
enum  apds9960LedBoost_t { APDS9960_LEDBOOST_100PCNT = 0x00, APDS9960_LEDBOOST_150PCNT = 0x10, APDS9960_LEDBOOST_200PCNT = 0x20, APDS9960_LEDBOOST_300PCNT = 0x30 }
 

LED boost settings.

More...
enum  
 

Dimensions.

More...
enum  
 

FIFO Interrupts.

More...
enum  
 

Gesture Gain.

More...
enum  
 

Pulse Lenghts.

More...

Detailed Description

Software License Agreement (BSD License)

Copyright (c) 2017, Adafruit Industries All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file Adafruit_APDS9960.h.


Enumeration Type Documentation

anonymous enum

I2C Registers.

Definition at line 43 of file Adafruit_APDS9960.h.

anonymous enum

Dimensions.

Definition at line 137 of file Adafruit_APDS9960.h.

anonymous enum

FIFO Interrupts.

Definition at line 144 of file Adafruit_APDS9960.h.

anonymous enum

Gesture Gain.

Definition at line 152 of file Adafruit_APDS9960.h.

anonymous enum

Pulse Lenghts.

Definition at line 160 of file Adafruit_APDS9960.h.

ADC gain settings.

Enumerator:
APDS9960_AGAIN_1X 

No gain.

APDS9960_AGAIN_4X 

2x gain

APDS9960_AGAIN_16X 

16x gain

APDS9960_AGAIN_64X 

64x gain

Definition at line 97 of file Adafruit_APDS9960.h.

LED boost settings.

Enumerator:
APDS9960_LEDBOOST_100PCNT 

100%

APDS9960_LEDBOOST_150PCNT 

150%

APDS9960_LEDBOOST_200PCNT 

200%

APDS9960_LEDBOOST_300PCNT 

300%

Definition at line 129 of file Adafruit_APDS9960.h.

LED drive settings.

Enumerator:
APDS9960_LEDDRIVE_100MA 

100mA

APDS9960_LEDDRIVE_50MA 

50mA

APDS9960_LEDDRIVE_25MA 

25mA

APDS9960_LEDDRIVE_12MA 

12.5mA

Definition at line 121 of file Adafruit_APDS9960.h.

Proxmity gain settings.

Enumerator:
APDS9960_PGAIN_1X 

1x gain

APDS9960_PGAIN_2X 

2x gain

APDS9960_PGAIN_4X 

4x gain

APDS9960_PGAIN_8X 

8x gain

Definition at line 105 of file Adafruit_APDS9960.h.

Pulse length settings.

Enumerator:
APDS9960_PPULSELEN_4US 

4uS

APDS9960_PPULSELEN_8US 

8uS

APDS9960_PPULSELEN_16US 

16uS

APDS9960_PPULSELEN_32US 

32uS

Definition at line 113 of file Adafruit_APDS9960.h.