Rohm BH1745 red-green-blue-clear -color sensor hello world. Uses Rohm sensor hal for i2c commands and rohm-bh1745 -driver for sensor specific commands.

Dependencies:   mbed rohm-bh1745 rohm-sensor-hal

Fork of rohm-rpr0521-hello by Rohm

Committer:
MikkoZ
Date:
Mon Sep 12 09:22:17 2016 +0000
Revision:
2:edc916d1a86d
Initial version of (proximity-als-ir) rpr0521 hello application.

Who changed what in which revision?

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