src/APDS9930.cpp
uint8_t APDS9930::getProximityGain()
{
    uint8_t val;
    
    /* Read value from CONTROL register */
    if( !wireReadDataByte(APDS9930_CONTROL, val) ) {
        return ERROR;
    }
    
    /* Shift and mask out PDRIVE bits */
    val = (val >> 2) & 0b00000011;
    
    return val;
}
/**
 * @brief Returns receiver gain for proximity detection
 *
 * Value    Gain
 *   0       1x
 *   1       2x
 *   2       4x
 *   3       8x
 *
 * @return the value of the proximity gain. 0xFF on failure.
 */
@brief Returns receiver gain for proximity detection
Value    Gain
0       1x
1       2x
2       4x
3       8x

@return the value of the proximity gain. 0xFF on failure.
@brief Returns receiver gain for proximity detection Value Gain 0 1x 1 2x 2 4x 3 8x @return the value of the proximity gain . 0xFF on failure .
uint8_t APDS9930::getProximityGain()
{
    uint8_t val;
    if( !wireReadDataByte(APDS9930_CONTROL, val) ) {
        return ERROR;
    }
    val = (val >> 2) & 0b00000011;
    return val;
}
uint8_t APDS9930 :: getProximityGain ( ) { uint8_t val ; if ( ! wireReadDataByte ( APDS9930_CONTROL , val ) ) { return ERROR ; } val = ( val >> 2 ) & 0b00000011 ; return val ; }
@brief Returns receiver gain for proximity detection
 Value    Gain
   0       1x
   1       2x
   2       4x
   3       8x
@brief Returns receiver gain for proximity detection Value Gain 0 1x 1 2x 2 4x 3 8x
/* Read value from CONTROL register */ /* Shift and mask out PDRIVE bits */