![]() |
LibDriver EM4095
|
driver em4095 header file More...
#include <stdio.h>#include <stdint.h>#include <string.h>Go to the source code of this file.
Data Structures | |
| struct | em4095_time_s |
| em4095 time structure definition More... | |
| struct | em4095_decode_s |
| em4095 decode structure definition More... | |
| struct | em4095_handle_s |
| em4095 handle structure definition More... | |
| struct | em4095_info_s |
| em4095 information structure definition More... | |
Macros | |
| #define | EM4095_MAX_LENGTH 384 |
| em4095 max length definition | |
| #define | DRIVER_EM4095_LINK_INIT(HANDLE, STRUCTURE) |
| initialize em4095_handle_t structure | |
| #define | DRIVER_EM4095_LINK_SHD_GPIO_INIT(HANDLE, FUC) |
| link shd_gpio_init function | |
| #define | DRIVER_EM4095_LINK_SHD_GPIO_DEINIT(HANDLE, FUC) |
| link shd_gpio_deinit function | |
| #define | DRIVER_EM4095_LINK_SHD_GPIO_WRITE(HANDLE, FUC) |
| link shd_gpio_write function | |
| #define | DRIVER_EM4095_LINK_MOD_GPIO_INIT(HANDLE, FUC) |
| link mod_gpio_init function | |
| #define | DRIVER_EM4095_LINK_MOD_GPIO_DEINIT(HANDLE, FUC) |
| link mod_gpio_deinit function | |
| #define | DRIVER_EM4095_LINK_MOD_GPIO_WRITE(HANDLE, FUC) |
| link mod_gpio_write function | |
| #define | DRIVER_EM4095_LINK_DEMOD_GPIO_INIT(HANDLE, FUC) |
| link demod_gpio_init function | |
| #define | DRIVER_EM4095_LINK_DEMOD_GPIO_DEINIT(HANDLE, FUC) |
| link demod_gpio_deinit function | |
| #define | DRIVER_EM4095_LINK_DEMOD_GPIO_READ(HANDLE, FUC) |
| link demod_gpio_read function | |
| #define | DRIVER_EM4095_LINK_TIMESTAMP_READ(HANDLE, FUC) |
| link timestamp_read function | |
| #define | DRIVER_EM4095_LINK_DELAY_MS(HANDLE, FUC) |
| link delay_ms function | |
| #define | DRIVER_EM4095_LINK_DEBUG_PRINT(HANDLE, FUC) |
| link debug_print function | |
| #define | DRIVER_EM4095_LINK_RECEIVE_CALLBACK(HANDLE, FUC) |
| link receive_callback function | |
Typedefs | |
| typedef struct em4095_time_s | em4095_time_t |
| em4095 time structure definition | |
| typedef struct em4095_decode_s | em4095_decode_t |
| em4095 decode structure definition | |
| typedef struct em4095_handle_s | em4095_handle_t |
| em4095 handle structure definition | |
| typedef struct em4095_info_s | em4095_info_t |
| em4095 information structure definition | |
Enumerations | |
| enum | em4095_mode_t { EM4095_MODE_IDLE = 0x00 , EM4095_MODE_READ = 0x01 , EM4095_MODE_WRITE = 0x02 } |
| em4095 mode enumeration definition More... | |
Functions | |
| uint8_t | em4095_info (em4095_info_t *info) |
| get chip's information | |
| uint8_t | em4095_irq_handler (em4095_handle_t *handle) |
| irq handler | |
| uint8_t | em4095_init (em4095_handle_t *handle) |
| initialize the chip | |
| uint8_t | em4095_deinit (em4095_handle_t *handle) |
| close the chip | |
| uint8_t | em4095_read (em4095_handle_t *handle, uint16_t len) |
| read data | |
| uint8_t | em4095_write (em4095_handle_t *handle, uint8_t *buf, uint16_t len) |
| write data | |
| uint8_t | em4095_copy_decode_buffer (em4095_handle_t *handle, uint8_t *buf, uint16_t *len) |
| copy decode buffer | |
| uint8_t | em4095_power_on (em4095_handle_t *handle) |
| power on | |
| uint8_t | em4095_power_down (em4095_handle_t *handle) |
| power down | |
| uint8_t | em4095_set_div (em4095_handle_t *handle, uint32_t clock_div) |
| set irq div | |
| uint8_t | em4095_get_div (em4095_handle_t *handle, uint32_t *clock_div) |
| get irq div | |
driver em4095 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/06/30 | 1.0 | Shifeng Li | first upload |
Definition in file driver_em4095.h.