LibDriver UVIS25
Loading...
Searching...
No Matches
driver_uvis25_interrupt.h File Reference

driver uvis25 interrupt header file More...

Include dependency graph for driver_uvis25_interrupt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UVIS25_INTERRUPT_DEFAULT_IIC   UVIS25_BOOL_TRUE /* enable iic */
 uvis25 interrupt example default definition
#define UVIS25_INTERRUPT_DEFAULT_SPI_WIRE   UVIS25_SPI_WIRE_4 /* 4 wire spi */
#define UVIS25_INTERRUPT_DEFAULT_BOOT_MODE   UVIS25_BOOT_NORMAL_MODE /* normal boot mode */
#define UVIS25_INTERRUPT_DEFAULT_BLOCK_DATA_UPDATE   UVIS25_BOOL_FALSE /* disable block data update */
#define UVIS25_INTERRUPT_DEFAULT_INTERRUPT_ACTIVE_LEVEL   UVIS25_INTERRUPT_ACTIVE_LEVEL_LOWER /* low level */
#define UVIS25_INTERRUPT_DEFAULT_INTERRUPT_PIN_TYPE   UVIS25_INTERRUPT_PIN_TYPE_PUSH_PULL /* set push-pull */
#define UVIS25_INTERRUPT_DEFAULT_INTERRUPT   UVIS25_BOOL_TRUE /* enable interrupt */
#define UVIS25_INTERRUPT_DEFAULT_LATCH_INTERRUPT   UVIS25_BOOL_FALSE /* disable latch interrupt */
#define UVIS25_INTERRUPT_DEFAULT_HIGH_THRESHOLD_INTERRUPT   UVIS25_BOOL_TRUE /* enable high threshold interrupt */
#define UVIS25_INTERRUPT_DEFAULT_LOW_THRESHOLD_INTERRUPT   UVIS25_BOOL_TRUE /* enable low threshold interrupt */

Functions

uint8_t uvis25_interrupt_irq_handler (void)
 interrupt example irq handler
uint8_t uvis25_interrupt_init (uvis25_interface_t interface, uvis25_interrupt_type_t mode, float uv_threshold, void(*callback)(uint8_t type))
 interrupt example init
uint8_t uvis25_interrupt_deinit (void)
 basic interrupt deinit
uint8_t uvis25_interrupt_read (float *uv)
 interrupt example read

Detailed Description

driver uvis25 interrupt header file

Copyright (c) 2015 - present LibDriver All rights reserved

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version
2.0.0
Author
Shifeng Li
Date
2021-03-24

history

Date Version Author Description
2021/03/24 2.0 Shifeng Li format the code
2020/12/06 1.0 Shifeng Li first upload

Definition in file driver_uvis25_interrupt.h.