Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: rohm-bh1726-hello rohm-tileshield-6sensor-demo
Fork of rohm-bh1745 by
Diff: rohm-bh1745/bh1745_driver.h
- Revision:
- 1:64629eee9eab
- Parent:
- 0:0bcc203c5c75
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rohm-bh1745/bh1745_driver.h Mon Sep 12 12:31:40 2016 +0000 @@ -0,0 +1,29 @@ +/* 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 bh1745_driver_h +#define bh1745_driver_h + +#include "../../rohm-sensor-hal/rohm-sensor-hal/rohm_hal.h" //types + +/* bh1745 driver*/ +uint8_t bh1745_readId(); +void bh1745_wait_until_found(); +void bh1745_soft_reset(); +bool bh1745_read_data(uint16_t* data16); +void bh1745_initial_setup(); +void bh1745_clear_interrupt(); + +#endif +