Rohm BH1726 ALS sensor driver.

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

Fork of rohm-bh1745 by Rohm

Committer:
MikkoZ
Date:
Mon Sep 19 12:24:27 2016 +0000
Revision:
3:6eb91c7c6560
Parent:
2:40307a303153
Updated SAD to work with other sensor tiles on Rohm Tile-shield.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MikkoZ 0:0bcc203c5c75 1 /* Copyright 2016 Rohm Semiconductor
MikkoZ 0:0bcc203c5c75 2
MikkoZ 0:0bcc203c5c75 3 Licensed under the Apache License, Version 2.0 (the "License");
MikkoZ 0:0bcc203c5c75 4 you may not use this file except in compliance with the License.
MikkoZ 0:0bcc203c5c75 5 You may obtain a copy of the License at
MikkoZ 0:0bcc203c5c75 6
MikkoZ 0:0bcc203c5c75 7 http://www.apache.org/licenses/LICENSE-2.0
MikkoZ 0:0bcc203c5c75 8
MikkoZ 0:0bcc203c5c75 9 Unless required by applicable law or agreed to in writing, software
MikkoZ 0:0bcc203c5c75 10 distributed under the License is distributed on an "AS IS" BASIS,
MikkoZ 0:0bcc203c5c75 11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
MikkoZ 0:0bcc203c5c75 12 See the License for the specific language governing permissions and
MikkoZ 0:0bcc203c5c75 13 limitations under the License.
MikkoZ 0:0bcc203c5c75 14 */
MikkoZ 2:40307a303153 15 #ifndef bh1726_driver_h
MikkoZ 2:40307a303153 16 #define bh1726_driver_h
MikkoZ 0:0bcc203c5c75 17
MikkoZ 0:0bcc203c5c75 18 #include "../../rohm-sensor-hal/rohm-sensor-hal/rohm_hal.h" //types
MikkoZ 0:0bcc203c5c75 19
MikkoZ 2:40307a303153 20 /* bh1726 driver*/
MikkoZ 2:40307a303153 21 uint8_t bh1726_readId();
MikkoZ 2:40307a303153 22 void bh1726_wait_until_found();
MikkoZ 2:40307a303153 23 void bh1726_soft_reset();
MikkoZ 2:40307a303153 24 bool bh1726_read_data(uint16_t* data16);
MikkoZ 2:40307a303153 25 void bh1726_initial_setup();
MikkoZ 2:40307a303153 26 void bh1726_clear_interrupt();
MikkoZ 2:40307a303153 27 void bh1726_dumpregs(uint8_t dumpstart, uint8_t dumpend);
MikkoZ 0:0bcc203c5c75 28
MikkoZ 0:0bcc203c5c75 29 #endif
MikkoZ 0:0bcc203c5c75 30