| | |
| | | /* |
| | | * 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. |
| | |
| | | |
| | | if (count < UCI_MAX_UL_ITEMS) |
| | | { |
| | | struct UCI_TL_MSG_T *p = WsfBufAlloc((uint16_t)(len + sizeof(struct UCI_TL_MSG_T))); |
| | | uint16_t up_data_len = (uint16_t)(len + sizeof(struct UCI_TL_MSG_T)); |
| | | struct UCI_TL_MSG_T *p = WsfBufAlloc(up_data_len); |
| | | |
| | | if (p != NULL) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | LOG_INFO(TRACE_MODULE_UCI, "No buff to up queue\r\n"); |
| | | LOG_INFO(TRACE_MODULE_UCI, "No buff to up queue %u\r\n", up_data_len); |
| | | } |
| | | // LOG_INFO(TRACE_MODULE_UCI, "HCI %02x %02x %02x %02x\r\n", buf[0], buf[1], buf[2], buf[3]); |
| | | } |
| | | else |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | void uci_tl_rx_stop(void) |
| | | { |
| | | if (uci_tl_dev->uci_tl_rx_stop) |
| | | { |
| | | uci_tl_dev->uci_tl_rx_stop(); |
| | | } |
| | | } |
| | | |
| | | void uci_tl_rx_restart(void) |
| | | { |
| | | if (uci_tl_dev->uci_tl_rx_restart) |
| | | { |
| | | uci_tl_dev->uci_tl_rx_restart(); |
| | | } |
| | | } |
| | | |
| | | /*************************************************************************************************/ |
| | | /*! |
| | | * \brief WSF event handler for UCI transmission layer task. |