Rohm RPR0521 proximity-als-ir -sensor driver

Dependents:   rohm-rpr0521-hello rohm-tileshield-6sensor-demo rohm-SensorShield-example PMK_industrija_mikro1 ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers rpr0521_driver.h Source File

rpr0521_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 rpr0521_driver_h
00016 #define rpr0521_driver_h
00017 
00018 #include "../../rohm-sensor-hal/rohm-sensor-hal/rohm_hal.h"         //types
00019 
00020 /* rpr0521 driver*/
00021 uint8_t rpr0521_readId();
00022 void rpr0521_wait_until_found();
00023 void rpr0521_soft_reset();
00024 bool rpr0521_read_data(uint16_t* data16);
00025 void rpr0521_initial_setup();
00026 void rpr0521_clear_interrupt();
00027 
00028 #endif
00029