Rohm RPR0521 proximity-als-ir -sensor hello world application. Uses rpr0521-driver and rohm-sensor-hal -libraries.
Dependencies: mbed rohm-rpr0521 rohm-sensor-hal
Fork of KX022_Hello by
Diff: rohm-rpr0521/rohm-rpr0521/rpr0521_driver.h
- Revision:
- 3:e22f64655c63
- Parent:
- 2:edc916d1a86d
- Child:
- 4:6a931904c92a
--- a/rohm-rpr0521/rohm-rpr0521/rpr0521_driver.h Mon Sep 12 09:22:17 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -/* 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 rpr0521_driver_h -#define rpr0521_driver_h - -#include "../../rohm-sensor-hal/rohm-sensor-hal/rohm_hal.h" //types - -/* rpr0521 driver*/ -uint8_t rpr0521_readId(); -void rpr0521_wait_until_found(); -void rpr0521_soft_reset(); -bool rpr0521_read_data(uint16_t* data16); -void rpr0521_initial_setup(); -void rpr0521_clear_interrupt(); - -#endif -

Rohm RPR-0521RS | Light & Proximity Sensor