Rohm / rohm-bh1726

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

Fork of rohm-bh1745 by Rohm

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers bh1726_driver.h Source File

bh1726_driver.h

00001 /*   Copyright 2016 Rohm Semiconductor
00002 
00003    Licensed under the Apache License, Version 2.0 (the "License");
00004    you may not use this file except in compliance with the License.
00005    You may obtain a copy of the License at
00006 
00007        http://www.apache.org/licenses/LICENSE-2.0
00008 
00009    Unless required by applicable law or agreed to in writing, software
00010    distributed under the License is distributed on an "AS IS" BASIS,
00011    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00012    See the License for the specific language governing permissions and
00013    limitations under the License.
00014 */
00015 #ifndef bh1726_driver_h
00016 #define bh1726_driver_h
00017 
00018 #include "../../rohm-sensor-hal/rohm-sensor-hal/rohm_hal.h"         //types
00019 
00020 /* bh1726 driver*/
00021 uint8_t bh1726_readId();
00022 void bh1726_wait_until_found();
00023 void bh1726_soft_reset();
00024 bool bh1726_read_data(uint16_t* data16);
00025 void bh1726_initial_setup();
00026 void bh1726_clear_interrupt();
00027 void bh1726_dumpregs(uint8_t dumpstart, uint8_t dumpend);
00028 
00029 #endif
00030