LibDriver OPT300X
Loading...
Searching...
No Matches
driver_opt300x_shot.h File Reference

driver opt300x shot header file More...

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

Go to the source code of this file.

Macros

#define OPT3002_SHOT_DEFAULT_RANGE   OPT3002_RANGE_AUTO
 opt300x shot example default definition
#define OPT3005_SHOT_DEFAULT_RANGE   OPT3005_RANGE_AUTO
#define OPT300X_SHOT_DEFAULT_RANGE   OPT300X_RANGE_AUTO
#define OPT300X_SHOT_DEFAULT_CONVERSION_TIME   OPT300X_CONVERSION_TIME_800_MS
#define OPT300X_SHOT_DEFAULT_MASK_EXPONENT   OPT300X_BOOL_FALSE
#define OPT300X_SHOT_DEFAULT_FAULT_COUNT   OPT300X_FAULT_COUNT_ONE

Functions

uint8_t opt300x_shot_init (opt300x_t type, opt300x_address_t addr_pin)
 shot example init
uint8_t opt300x_shot_deinit (void)
 shot example deinit
uint8_t opt300x_shot_read (float *lux)
 shot example read
uint8_t opt3002_shot_read (float *nw_cm2)
 shot example read

Detailed Description

driver opt300x shot 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
1.0.0
Author
Shifeng Li
Date
2025-08-30

history

Date Version Author Description
2025/08/30 1.0 Shifeng Li first upload

Definition in file driver_opt300x_shot.h.