51 lines
1.8 KiB
C
51 lines
1.8 KiB
C
/****************************************************************************
|
|
|
|
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.
|
|
|
|
****************************************************************************/
|
|
#ifndef IOT_CLI_TX_RX_H
|
|
#define IOT_CLI_TX_RX_H
|
|
|
|
/* os shim includes */
|
|
#include "os_types.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define CLI_UNICAST_SEND_TYPE (0x01)
|
|
#define CLI_BCAST_SEND_TYPE (0x03)
|
|
|
|
|
|
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);
|
|
|
|
void iot_cli_send_to_host(
|
|
uint32_t msgid, uint8_t *buffer, uint32_t length, uint8_t *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);
|
|
|
|
void iot_cli_module_send_to_host_with_retry(uint32_t msgid, uint8_t *buffer,
|
|
uint32_t length, uint16_t sn, uint8_t *dst_mac, uint8_t *src_mac);
|
|
|
|
void iot_cli_module_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);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif |