Thermometer indicating temperature and humidity by LED blink pattern
Dependencies: BLE_API mbed nRF51822
uvis25.h
00001 /* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved. 00002 * 00003 * The information contained herein is property of Nordic Semiconductor ASA. 00004 * Terms and conditions of usage are described in detail in NORDIC 00005 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. 00006 * 00007 * Licensees are granted free, non-transferable use of the information. NO 00008 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from 00009 * the file. 00010 * 00011 */ 00012 00013 #ifndef UVIS25_H 00014 #define UVIS25_H 00015 00016 /*lint ++flb "Enter library region" */ 00017 00018 #include <stdbool.h> 00019 #include <stdint.h> 00020 00021 00022 00023 #define UVIS25_ADDRESS_WHO_AM_I (0x0FU) //!< WHO_AM_I register identifies the device. Expected value is 0xCA. 00024 00025 #define UVIS25_WriteADDE 0x8E 00026 #define UVIS25_ReadADDE 0x8F 00027 #define UVIS25_UVI_OUT 0x28 00028 00029 bool uvis25_init(void); 00030 00031 void uvis25_register_write(uint8_t register_address, const uint8_t value); 00032 00033 void uvis25_register_read(char register_address, char *destination, uint8_t number_of_bytes); 00034 00035 bool uvis25_verify_product_id(void); 00036 00037 uint8_t UVIS25_ReadUVI(void); 00038 00039 #endif /* UVIS25_H */
Generated on Fri Aug 26 2022 21:33:01 by 1.7.2