![]() |
LibDriver CS100
|
driver cs100 header file More...
#include <stdlib.h>#include <stdint.h>#include <stdio.h>#include <string.h>Go to the source code of this file.
Data Structures | |
| struct | cs100_time_s |
| cs100 time structure definition More... | |
| struct | cs100_handle_s |
| cs100 handle structure definition More... | |
| struct | cs100_info_s |
| cs100 information structure definition More... | |
Macros | |
| #define | CS100_READ_RETRY_TIMES 3 |
| cs100 read retry times definition | |
| #define | DRIVER_CS100_LINK_INIT(HANDLE, STRUCTURE) |
| initialize cs100_handle_t structure | |
| #define | DRIVER_CS100_LINK_TRIG_INIT(HANDLE, FUC) |
| link trig_init function | |
| #define | DRIVER_CS100_LINK_TRIG_DEINIT(HANDLE, FUC) |
| link trig_deinit function | |
| #define | DRIVER_CS100_LINK_TRIG_WRITE(HANDLE, FUC) |
| link trig_write function | |
| #define | DRIVER_CS100_LINK_ECHO_INIT(HANDLE, FUC) |
| link echo_init function | |
| #define | DRIVER_CS100_LINK_ECHO_DEINIT(HANDLE, FUC) |
| link echo_deinit function | |
| #define | DRIVER_CS100_LINK_ECHO_WRITE(HANDLE, FUC) |
| link echo_read function | |
| #define | DRIVER_CS100_LINK_TIMESTAMP_READ(HANDLE, FUC) |
| link timestamp_read function | |
| #define | DRIVER_CS100_LINK_DELAY_MS(HANDLE, FUC) |
| link delay_ms function | |
| #define | DRIVER_CS100_LINK_DELAY_US(HANDLE, FUC) |
| link delay_us function | |
| #define | DRIVER_CS100_LINK_DEBUG_PRINT(HANDLE, FUC) |
| link debug_print function | |
Typedefs | |
| typedef struct cs100_time_s | cs100_time_t |
| cs100 time structure definition | |
| typedef struct cs100_handle_s | cs100_handle_t |
| cs100 handle structure definition | |
| typedef struct cs100_info_s | cs100_info_t |
| cs100 information structure definition | |
Functions | |
| uint8_t | cs100_info (cs100_info_t *info) |
| get chip's information | |
| uint8_t | cs100_init (cs100_handle_t *handle) |
| initialize the chip | |
| uint8_t | cs100_deinit (cs100_handle_t *handle) |
| close the chip | |
| uint8_t | cs100_read (cs100_handle_t *handle, uint32_t *time_us, float *m) |
| read the distance | |
driver cs100 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/07/30 | 1.0 | Shifeng Li | first upload |
Definition in file driver_cs100.h.