![]() |
LibDriver BPC
|
driver bpc header file More...
#include <stdio.h>#include <stdint.h>#include <string.h>Go to the source code of this file.
Data Structures | |
| struct | bpc_s |
| bpc structure definition More... | |
| struct | bpc_time_s |
| bpc time structure definition More... | |
| struct | bpc_decode_s |
| bpc decode structure definition More... | |
| struct | bpc_handle_s |
| bpc handle structure definition More... | |
| struct | bpc_info_s |
| bpc information structure definition More... | |
Macros | |
| #define | BPC_MAX_START_RANGE 0.20f |
| bpc max start range definition | |
| #define | BPC_MAX_RANGE 0.20f |
| bpc max range definition | |
| #define | DRIVER_BPC_LINK_INIT(HANDLE, STRUCTURE) |
| initialize bpc_handle_t structure | |
| #define | DRIVER_BPC_LINK_TIMESTAMP_READ(HANDLE, FUC) |
| link timestamp_read function | |
| #define | DRIVER_BPC_LINK_DELAY_MS(HANDLE, FUC) |
| link delay_ms function | |
| #define | DRIVER_BPC_LINK_DEBUG_PRINT(HANDLE, FUC) |
| link debug_print function | |
| #define | DRIVER_BPC_LINK_RECEIVE_CALLBACK(HANDLE, FUC) |
| link receive_callback function | |
Typedefs | |
| typedef struct bpc_s | bpc_t |
| bpc structure definition | |
| typedef struct bpc_time_s | bpc_time_t |
| bpc time structure definition | |
| typedef struct bpc_decode_s | bpc_decode_t |
| bpc decode structure definition | |
| typedef struct bpc_handle_s | bpc_handle_t |
| bpc handle structure definition | |
| typedef struct bpc_info_s | bpc_info_t |
| bpc information structure definition | |
Enumerations | |
| enum | bpc_status_t { BPC_STATUS_OK = 0x00 , BPC_STATUS_PARITY_ERR = 0x01 , BPC_STATUS_FRAME_INVALID = 0x02 } |
| bpc status enumeration definition More... | |
Functions | |
| uint8_t | bpc_info (bpc_info_t *info) |
| get chip's information | |
| uint8_t | bpc_irq_handler (bpc_handle_t *handle) |
| irq handler | |
| uint8_t | bpc_init (bpc_handle_t *handle) |
| initialize the chip | |
| uint8_t | bpc_deinit (bpc_handle_t *handle) |
| close the chip | |
driver bpc 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/12/30 | 1.0 | Shifeng Li | first upload |
Definition in file driver_bpc.h.