初始提交
This commit is contained in:
41
cli/communicator/iot_cli_tx_rx.c
Normal file
41
cli/communicator/iot_cli_tx_rx.c
Normal file
@@ -0,0 +1,41 @@
|
||||
/****************************************************************************
|
||||
|
||||
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
||||
|
||||
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
||||
be copied by any method or incorporated into another program without
|
||||
the express written consent of Aerospace C.Power. This Information or any portion
|
||||
thereof remains the property of Aerospace C.Power. The Information contained herein
|
||||
is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
||||
liability for its use in any way and conveys no license or title under
|
||||
any patent or copyright and makes no representation or warranty that this
|
||||
Information is free from patent or copyright infringement.
|
||||
|
||||
****************************************************************************/
|
||||
|
||||
#include "iot_cli_tx_rx.h"
|
||||
#include "iot_cli_ul_buf.h"
|
||||
|
||||
void iot_cli_send_data(
|
||||
uint8_t send_type, uint8_t retry_cnt, uint16_t moduleid,
|
||||
uint32_t msgid, uint8_t *src_mac, uint8_t *dest_mac,
|
||||
uint8_t *buf, uint32_t len)
|
||||
{
|
||||
iot_cli_module_send_data(send_type, retry_cnt,
|
||||
moduleid, msgid, src_mac, dest_mac, buf, len);
|
||||
}
|
||||
|
||||
void iot_cli_send_to_host(uint32_t msgid, uint8_t *buffer, uint32_t length,
|
||||
uint8_t *dst_mac)
|
||||
{
|
||||
iot_cli_send_to_host_with_sn(msgid, buffer, length,
|
||||
CLI_UL_BUF_IVALID_SN, dst_mac);
|
||||
}
|
||||
|
||||
void iot_cli_send_to_host_with_sn(
|
||||
uint32_t msgid, uint8_t *buffer, uint32_t length,
|
||||
uint16_t sn, uint8_t *dst_mac)
|
||||
{
|
||||
iot_cli_module_send_to_host_with_retry(msgid, buffer, length, sn, dst_mac,
|
||||
NULL);
|
||||
}
|
||||
Reference in New Issue
Block a user