TuyaOS
prod_test.h
1/*============================================================================
2* *
3* Copyright (C) by Tuya Inc *
4* All rights reserved *
5* *
6=============================================================================*/
7
8#ifndef ___PROD_TEST_H__
9#define ___PROD_TEST_H__
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15/*============================ INCLUDES ======================================*/
16#include "stdint.h"
17#include "tuya_cloud_types.h"
18#include "tuya_cloud_com_defs.h"
20#include "mf_test.h"
21
22/*============================ MACROS ========================================*/
23/*============================ MACROFIED FUNCTIONS ===========================*/
24/*============================ TYPES =========================================*/
25typedef struct {
26 char ssid[32 + 1];
27 signed char rssi;
29
30typedef OPERATE_RET(*prodtest_app_cb_t)(int flag, prodtest_ssid_info_t *info, uint8_t info_count);
31
32typedef struct {
33 GW_WF_CFG_MTHD_SEL gwcm_mode;
34 uint8_t ssid_count;
35 const char **ssid_list;
36 prodtest_app_cb_t app_cb;
37 MF_USER_PRODUCT_TEST_CB product_cb;
38 char *file_name;
39 char *file_ver;
41
42typedef struct {
43 MF_USER_PRODUCT_TEST_CB product_cb;
44 char *file_name;
45 char *file_ver;
47
48
49/*============================ PROTOTYPES ====================================*/
50OPERATE_RET autotest_prod_start(autotest_prod_cfg_t *cfg);
51
52int prodtest_identify_listen_start(char *app_name, char *app_version);
53int prodtest_identify_listen_stop(void);
54bool prodtest_ssid_scan(uint32_t timeout);
55int prodtest_app_register(const prodtest_app_cfg_t *app_cfg);
56
57#ifdef __cplusplus
58} // extern "C"
59#endif
60
61#endif
Common process - mf test
OPERATE_RET(* MF_USER_PRODUCT_TEST_CB)(USHORT_T cmd, UCHAR_T *data, UINT_T len, OUT UCHAR_T **ret_data, OUT USHORT_T *ret_len)
callback for user product test
Definition: mf_test.h:77
Definition: prod_test.h:42
Definition: prod_test.h:32
Definition: prod_test.h:25
Common definitions of TUYA cloud