aboutsummaryrefslogtreecommitdiff
path: root/src/app/google_rcu/test_module/mp_test.h
blob: 5071f0690af4496f5292e43b098fa8a4857430f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
*********************************************************************************************************
*               Copyright(c) 2015, Realtek Semiconductor Corporation. All rights reserved.
**********************************************************************************************************
* @file     mp_test.h
* @brief    .
* @details
* @author   ranhui_xia
* @date     2020-05-14
* @version  v1.1
*********************************************************************************************************
*/

#ifndef _MP_CONFIG_H
#define _MP_CONFIG_H

#ifdef __cplusplus
extern "C" {
#endif

#include "stdbool.h"
#include "stdint.h"
#include "key_handle.h"

/*============================================================================*
 *                              Macros
 *============================================================================*/
#define FP_MAX_LINE_NUM 5
#define FP_MAC_ADDR_LEN 6
#define FP_LINK_KEY_LEN 16
#define FP_CCCD_BITS_CNT 36
#define FP_CCCD_DATA_LEN 32

#define MP_TEST_MODE_FLG_ENABLE_VALUE       0x74657374
#define MP_TEST_MODE_FLG_DISABLE_VALUE      0x50245150

void mp_test_init_data(void);
bool mp_test_enable_test_mode_flag(void);
bool mp_test_disable_test_mode_flag(void);
bool mp_test_is_test_mode_flag_en(void);
bool mp_test_set_fast_pair_info(uint8_t index);
bool mp_test_clear_bond_info(void);
bool mp_test_handle_comb_keys_timer_cb(uint32_t combine_status);
#if (MP_TEST_MODE_TRIG_SEL & MP_TEST_MODE_TRIG_BY_GPIO)
void mp_test_check_trig_gpio_status(void);
#endif
bool mp_test_load_fp_mac_addr(void);

#ifdef __cplusplus
}
#endif

#endif /* _PROFILE_INIT_H */