keil/include/components/uci/inc/uci_tl_comm.h
@@ -1,5 +1,5 @@
/*
 * Copyright (c) 2019-2023 Beijing Hanwei Innovation Technology Ltd. Co. and
 * Copyright (c) 2019-2025 Beijing Hanwei Innovation Technology Ltd. Co. and
 * its subsidiaries and affiliates (collectly called MKSEMI).
 *
 * All rights reserved.
@@ -43,7 +43,7 @@
#include "user_config.h"
#include "wsf_queue.h"
#include "wsf_timer.h"
#include "mk_timer_list.h"
#include "stdbool.h"
/* UCI SPI full-duplex handshake interface */
@@ -63,19 +63,22 @@
/* UCI UART interface */
#ifndef UCI_INTF_UART
#define UCI_INTF_UART (0)
#define UCI_INTF_UART (1)
#endif
#define UCI_RX_BUFF_SIZE (UCI_HEADER_SIZE + UCI_MAX_PAYLOAD_SIZE)
//#define UCI_RX_BUFF_SIZE (UCI_HEADER_SIZE + UCI_MAX_PAYLOAD_SIZE)
#define UCI_RX_BUFF_SIZE (UCI_HEADER_SIZE + 1023)
#define UCI_TX_BUFF_SIZE UCI_RX_BUFF_SIZE
typedef struct uci_tl_dev_s
{
    wsfQueue_t tl_down_queue;
    wsfQueue_t tl_up_queue;
    wsfTimer_t tl_timer;
    mk_timer_t tl_timer;
    void (*uci_tl_setup)(void);
    void (*uci_tl_resume)(void);
    void (*uci_tl_rx_stop)(void);
    void (*uci_tl_rx_restart)(void);
    bool (*uci_tl_up_is_active)(void);
    void (*uci_tl_down_notify)(void);
    void (*uci_tl_up_req)(void);