Rohm BH1726 ALS sensor driver.

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

Fork of rohm-bh1745 by Rohm

Committer:
MikkoZ
Date:
Mon Sep 12 12:31:40 2016 +0000
Revision:
1:64629eee9eab
Parent:
rohm-rpr0521/rpr0521_driver.h@0:0bcc203c5c75
Initial version of bh1745 driver

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 1:64629eee9eab 15 #ifndef bh1745_driver_h
MikkoZ 1:64629eee9eab 16 #define bh1745_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 1:64629eee9eab 20 /* bh1745 driver*/
MikkoZ 1:64629eee9eab 21 uint8_t bh1745_readId();
MikkoZ 1:64629eee9eab 22 void bh1745_wait_until_found();
MikkoZ 1:64629eee9eab 23 void bh1745_soft_reset();
MikkoZ 1:64629eee9eab 24 bool bh1745_read_data(uint16_t* data16);
MikkoZ 1:64629eee9eab 25 void bh1745_initial_setup();
MikkoZ 1:64629eee9eab 26 void bh1745_clear_interrupt();
MikkoZ 0:0bcc203c5c75 27
MikkoZ 0:0bcc203c5c75 28 #endif
MikkoZ 0:0bcc203c5c75 29