![]() |
LibDriver CH9121
|
driver ch9121 basic header file More...
#include "driver_ch9121_interface.h"Go to the source code of this file.
Macros | |
| #define | CH9121_BASIC_DEFAULT_DHCP CH9121_BOOL_FALSE |
| ch9121 basic example default definition | |
| #define | CH9121_BASIC_DEFAULT_UART_PORT 9600 |
| #define | CH9121_BASIC_DEFAULT_UART_DATA_BIT 8 |
| #define | CH9121_BASIC_DEFAULT_UART_STOP_BIT 1 |
| #define | CH9121_BASIC_DEFAULT_UART_PARITY CH9121_PARITY_NONE |
| #define | CH9121_BASIC_DEFAULT_UART_TIMEOUT 10 |
| #define | CH9121_BASIC_DEFAULT_UART_SOURCE_PORT_RANDOM CH9121_BOOL_FALSE |
| #define | CH9121_BASIC_DEFAULT_UART_BUFFER_LENGTH 1024 |
| #define | CH9121_BASIC_DEFAULT_UART_FLUSH CH9121_BOOL_FALSE |
| #define | CH9121_BASIC_DEFAULT_UART_PORT2 CH9121_BOOL_FALSE |
| #define | CH9121_BASIC_DEFAULT_DISCONNECT_WITH_NO_RJ45 CH9121_BOOL_TRUE |
Functions | |
| uint8_t | ch9121_basic_init (void) |
| basic example init | |
| uint8_t | ch9121_basic_deinit (void) |
| basic example deinit | |
| uint8_t | ch9121_basic_read (uint8_t *buf, uint16_t *len) |
| basic example read data | |
| uint8_t | ch9121_basic_write (uint8_t *buf, uint16_t len) |
| basic example write data | |
| uint8_t | ch9121_basic_config (ch9121_port_t uart_port, ch9121_mode_t mode, uint8_t ip[4], uint16_t port, uint8_t mask[4], uint8_t gateway[4], uint8_t dest_ip[4], uint16_t dest_port) |
| basic example config | |
driver ch9121 basic 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 |
|---|---|---|---|
| 2023/04/15 | 1.0 | Shifeng Li | first upload |
Definition in file driver_ch9121_basic.h.