![]() |
LibDriver JED1XX
|
driver jed1xx header file More...
#include <stdio.h>#include <stdint.h>#include <string.h>Go to the source code of this file.
Data Structures | |
| struct | jed1xx_handle_s |
| jed1xx handle structure definition More... | |
| struct | jed1xx_info_s |
| jed1xx information structure definition More... | |
Macros | |
| #define | DRIVER_JED1XX_LINK_INIT(HANDLE, STRUCTURE) |
| initialize jed1xx_handle_t structure | |
| #define | DRIVER_JED1XX_LINK_IIC_INIT(HANDLE, FUC) |
| link iic_init function | |
| #define | DRIVER_JED1XX_LINK_IIC_DEINIT(HANDLE, FUC) |
| link iic_deinit function | |
| #define | DRIVER_JED1XX_LINK_IIC_READ(HANDLE, FUC) |
| link iic_read function | |
| #define | DRIVER_JED1XX_LINK_IIC_WRITE(HANDLE, FUC) |
| link iic_write function | |
| #define | DRIVER_JED1XX_LINK_DELAY_MS(HANDLE, FUC) |
| link delay_ms function | |
| #define | DRIVER_JED1XX_LINK_DEBUG_PRINT(HANDLE, FUC) |
| link debug_print function | |
Typedefs | |
| typedef struct jed1xx_handle_s | jed1xx_handle_t |
| jed1xx handle structure definition | |
| typedef struct jed1xx_info_s | jed1xx_info_t |
| jed1xx information structure definition | |
Enumerations | |
| enum | jed1xx_type_t { JED1XX_TYPE_101_VOC = 100 , JED1XX_TYPE_103_H2 = 5000 , JED1XX_TYPE_104_C0 = 500 , JED1XX_TYPE_105_NH3 = 300 , JED1XX_TYPE_106_H2S = 3 , JED1XX_TYPE_107_C2H5OH = 500 , JED1XX_TYPE_109_C3H8 = 10000 , JED1XX_TYPE_110_CF2CL2 = 1000 , JED1XX_TYPE_112_NO2 = 10 , JED1XX_TYPE_115_SMOG = 10000 , JED1XX_TYPE_116_CH2O = 100 , JED1XX_TYPE_117_CH3COCH3 = 500 , JED1XX_TYPE_131_O3 = 100 , JED1XX_TYPE_138_C6H6 = 100 } |
| jed1xx type enumeration definition More... | |
Functions | |
| uint8_t | jed1xx_info (jed1xx_info_t *info) |
| get chip's information | |
| uint8_t | jed1xx_set_type (jed1xx_handle_t *handle, jed1xx_type_t type) |
| set the chip type | |
| uint8_t | jed1xx_get_type (jed1xx_handle_t *handle, jed1xx_type_t *type) |
| get the chip type | |
| uint8_t | jed1xx_init (jed1xx_handle_t *handle) |
| initialize the chip | |
| uint8_t | jed1xx_deinit (jed1xx_handle_t *handle) |
| close the chip | |
| uint8_t | jed1xx_read (jed1xx_handle_t *handle, uint16_t *raw, float *ppm) |
| read data | |
| uint8_t | jed1xx_set_reg (jed1xx_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len) |
| set the chip register | |
| uint8_t | jed1xx_get_reg (jed1xx_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len) |
| get the chip register | |
driver jed1xx 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 |
|---|---|---|---|
| 2024/10/30 | 1.0 | Shifeng Li | first upload |
Definition in file driver_jed1xx.h.