sp_conn_para.h
1.97 KB
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
#ifndef __SP_CONN_PARA__
#define __SP_CONN_PARA__
#include "meta.h"
typedef struct
{
int com_port;
META_COMM_BAUDRATE baudrate[12]; /**< [META] META stage baudrate polling array, it must end with META_BAUD_END. */
BOOT_META_ARG boot_meta_arg; /**< [BootROM] please refer to brom.h */
unsigned int ms_connect_timeout; /**< [META] META stage sync timeout value (after BootROM negotiation pass) */
unsigned int usb_enable: 1; /**< [META] Connect target with UART or USB, 0: UART 1: USB others:reserved */
unsigned int InMetaMode: 1; /**< [META] Decide that need boot META or not 0:need boot META 1:already in meta mode */
unsigned int BootModeFlag: 1; /**< [META] Decide target will boot meta mode or normal mode. 0: normal mode, need preloader handshake META 1:already meta mode boot */
unsigned int SwitchModeFlag: 1; /**< [META] Decide that need boot META or not 0:normal mode META 1:already in meta mode */
META_MODE_TRACE_PARA_T trace_para; /**< [META] META mode trace parameters */
bool usb_auto_detec; /**< [META] USB auto detection selection */
bool secure_boot; /**< [META] Selection of secure boot */
META_SysTrace_CallBack sys_cb; /**< MODEM System trace handler */
void* sys_cb_arg; /**< argument for MODEM System trace handler */
int io_channel_mode;
bool ext_tool_relay;
bool use_open_db;
bool send_at_cmd_to_connect_md_meta_mode;
} SP_Conn_Para;
typedef struct
{
SP_Conn_Para input_para;
SP_BOOT_ARG_S* sp_boot_arg;
int* boot_stop;
bool c2k_log_relay_enable;
} SP_Conn_Input;
typedef struct
{
bool b_shutdown;
bool b_backup;
bool b_switchFlag;
bool b_bootFlag;
bool b_sendAtCmdFlag;
char* apdb_pathname;
} SP_Disconn_Input;
#endif