![]() |
LibDriver OPT300X
|
driver opt300x interrupt header file More...
#include <driver_opt300x_interface.h>Go to the source code of this file.
Macros | |
| #define | OPT300X_INTERRUPT_DEFAULT_INTERRUPT_LATCH OPT300X_BOOL_TRUE |
| opt300x interrupt example default definition | |
| #define | OPT300X_INTERRUPT_DEFAULT_INTERRUPT_POLARITY OPT300X_INTERRUPT_POLARITY_LOW |
| #define | OPT3002_INTERRUPT_DEFAULT_RANGE OPT3002_RANGE_AUTO |
| #define | OPT3005_INTERRUPT_DEFAULT_RANGE OPT3005_RANGE_AUTO |
| #define | OPT300X_INTERRUPT_DEFAULT_RANGE OPT300X_RANGE_AUTO |
| #define | OPT300X_INTERRUPT_DEFAULT_CONVERSION_TIME OPT300X_CONVERSION_TIME_800_MS |
| #define | OPT300X_INTERRUPT_DEFAULT_MASK_EXPONENT OPT300X_BOOL_FALSE |
| #define | OPT300X_INTERRUPT_DEFAULT_FAULT_COUNT OPT300X_FAULT_COUNT_ONE |
Functions | |
| uint8_t | opt300x_interrupt_irq_handler (void) |
| interrupt irq | |
| uint8_t | opt300x_interrupt_init (opt300x_t type, opt300x_address_t addr_pin, float low_threshold, float high_threshold, void(*callback)(uint8_t type)) |
| interrupt example init | |
| uint8_t | opt300x_interrupt_deinit (void) |
| interrupt example deinit | |
| uint8_t | opt300x_interrupt_read (float *lux) |
| interrupt example read | |
| uint8_t | opt3002_interrupt_read (float *nw_cm2) |
| interrupt example read | |
driver opt300x 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.
| Date | Version | Author | Description |
|---|---|---|---|
| 2025/08/30 | 1.0 | Shifeng Li | first upload |
Definition in file driver_opt300x_interrupt.h.