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"
19#include "mf_test.h"
20
21/*============================ MACROS ========================================*/
22/*============================ MACROFIED FUNCTIONS ===========================*/
23/*============================ TYPES =========================================*/
24typedef struct {
25 char ssid[32 + 1];
26 signed char rssi;
28
29typedef OPERATE_RET(*prodtest_app_cb_t)(int flag, prodtest_ssid_info_t *info, uint8_t info_count);
30
31typedef struct {
32 GW_WF_CFG_MTHD_SEL gwcm_mode;
33 uint8_t ssid_count;
34 const char **ssid_list;
35 prodtest_app_cb_t app_cb;
36 MF_USER_PRODUCT_TEST_CB product_cb;
37 char *file_name;
38 char *file_ver;
40
41typedef struct {
42 MF_USER_PRODUCT_TEST_CB product_cb;
43 char *file_name;
44 char *file_ver;
46
47
48/*============================ PROTOTYPES ====================================*/
49OPERATE_RET autotest_prod_start(autotest_prod_cfg_t *cfg);
50
51int prodtest_identify_listen_start(char *app_name, char *app_version);
52int prodtest_identify_listen_stop(void);
53bool prodtest_ssid_scan(uint32_t timeout);
54int prodtest_app_register(const prodtest_app_cfg_t *app_cfg);
55
56#ifdef __cplusplus
57} // extern "C"
58#endif
59
60#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:41
Definition: prod_test.h:31
Definition: prod_test.h:24