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.
uvis25.h@10:5220f45c8ec1, 2017-07-18 (annotated)
- Committer:
- silviaChen
- Date:
- Tue Jul 18 09:48:42 2017 +0000
- Revision:
- 10:5220f45c8ec1
- Parent:
- 0:ef0f188a6fdd
Modify SDA/SCL configured pin to support NQ620 and NNN50 platform
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Marcomissyou | 0:ef0f188a6fdd | 1 | /* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved. |
| Marcomissyou | 0:ef0f188a6fdd | 2 | * |
| Marcomissyou | 0:ef0f188a6fdd | 3 | * The information contained herein is property of Nordic Semiconductor ASA. |
| Marcomissyou | 0:ef0f188a6fdd | 4 | * Terms and conditions of usage are described in detail in NORDIC |
| Marcomissyou | 0:ef0f188a6fdd | 5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. |
| Marcomissyou | 0:ef0f188a6fdd | 6 | * |
| Marcomissyou | 0:ef0f188a6fdd | 7 | * Licensees are granted free, non-transferable use of the information. NO |
| Marcomissyou | 0:ef0f188a6fdd | 8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from |
| Marcomissyou | 0:ef0f188a6fdd | 9 | * the file. |
| Marcomissyou | 0:ef0f188a6fdd | 10 | * |
| Marcomissyou | 0:ef0f188a6fdd | 11 | */ |
| Marcomissyou | 0:ef0f188a6fdd | 12 | |
| Marcomissyou | 0:ef0f188a6fdd | 13 | #ifndef UVIS25_H |
| Marcomissyou | 0:ef0f188a6fdd | 14 | #define UVIS25_H |
| Marcomissyou | 0:ef0f188a6fdd | 15 | |
| Marcomissyou | 0:ef0f188a6fdd | 16 | /*lint ++flb "Enter library region" */ |
| Marcomissyou | 0:ef0f188a6fdd | 17 | |
| Marcomissyou | 0:ef0f188a6fdd | 18 | #include <stdbool.h> |
| Marcomissyou | 0:ef0f188a6fdd | 19 | #include <stdint.h> |
| Marcomissyou | 0:ef0f188a6fdd | 20 | |
| Marcomissyou | 0:ef0f188a6fdd | 21 | |
| Marcomissyou | 0:ef0f188a6fdd | 22 | |
| Marcomissyou | 0:ef0f188a6fdd | 23 | #define UVIS25_ADDRESS_WHO_AM_I (0x0FU) //!< WHO_AM_I register identifies the device. Expected value is 0xCA. |
| Marcomissyou | 0:ef0f188a6fdd | 24 | |
| Marcomissyou | 0:ef0f188a6fdd | 25 | #define UVIS25_WriteADDE 0x8E |
| Marcomissyou | 0:ef0f188a6fdd | 26 | #define UVIS25_ReadADDE 0x8F |
| Marcomissyou | 0:ef0f188a6fdd | 27 | #define UVIS25_UVI_OUT 0x28 |
| Marcomissyou | 0:ef0f188a6fdd | 28 | |
| Marcomissyou | 0:ef0f188a6fdd | 29 | bool uvis25_init(void); |
| Marcomissyou | 0:ef0f188a6fdd | 30 | |
| Marcomissyou | 0:ef0f188a6fdd | 31 | void uvis25_register_write(uint8_t register_address, const uint8_t value); |
| Marcomissyou | 0:ef0f188a6fdd | 32 | |
| Marcomissyou | 0:ef0f188a6fdd | 33 | void uvis25_register_read(char register_address, char *destination, uint8_t number_of_bytes); |
| Marcomissyou | 0:ef0f188a6fdd | 34 | |
| Marcomissyou | 0:ef0f188a6fdd | 35 | bool uvis25_verify_product_id(void); |
| Marcomissyou | 0:ef0f188a6fdd | 36 | |
| Marcomissyou | 0:ef0f188a6fdd | 37 | uint8_t UVIS25_ReadUVI(void); |
| Marcomissyou | 0:ef0f188a6fdd | 38 | |
| Marcomissyou | 0:ef0f188a6fdd | 39 | #endif /* UVIS25_H */ |