Rohm BH1726 ALS sensor driver.

Dependents:   rohm-bh1726-hello rohm-tileshield-6sensor-demo

Fork of rohm-bh1745 by Rohm

rohm-bh1726/bh1726_driver.h

Committer:
MikkoZ
Date:
2016-09-19
Revision:
3:6eb91c7c6560
Parent:
2:40307a303153

File content as of revision 3:6eb91c7c6560:

/*   Copyright 2016 Rohm Semiconductor

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/
#ifndef bh1726_driver_h
#define bh1726_driver_h

#include "../../rohm-sensor-hal/rohm-sensor-hal/rohm_hal.h"         //types

/* bh1726 driver*/
uint8_t bh1726_readId();
void bh1726_wait_until_found();
void bh1726_soft_reset();
bool bh1726_read_data(uint16_t* data16);
void bh1726_initial_setup();
void bh1726_clear_interrupt();
void bh1726_dumpregs(uint8_t dumpstart, uint8_t dumpend);

#endif