-
Notifications
You must be signed in to change notification settings - Fork 1
/
acp_firmup.h
66 lines (53 loc) · 2.51 KB
/
acp_firmup.h
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
54
55
56
57
58
59
60
61
62
63
64
65
66
/********************************************************************************
*
* Copyright (C) 2017 NEXTCHIP Inc. All rights reserved.
* Module : acp_firmwareupdate.h
* Description :
* Author :
* Date :
* Version : Version 2.0
********************************************************************************
* History :
*
*
*
*
********************************************************************************/
#ifndef __ACP_FIRMWARE_UPDATE_H__
#define __ACP_FIRMWARE_UPDATE_H__
/********************************************************************************
* DEFINE
*********************************************************************************/
#define ONE_PACKET_MAX_SIZE 139
#define ACP_FIRMWARE_UP_START 0x00
#define ACP_FIRMWARE_UP_STOP 0x01
/********************************************************************************
* ENUMERATION
*********************************************************************************/
/********************************************************************************
* STRUCTURE-external
*********************************************************************************/
/* Firmware update(TX) managemnet structure */
typedef struct __firmware_update_manager__
{
int firmware_status[16]; // firmware status
int curvidmode[16]; // now, firmware video mode
int curvideofmt[16]; // now, firmware video format
} firmware_update_manager, *pfirmware_update_manager;
/********************************************************************************
* EXTERN FUNCTIONS
*********************************************************************************/
extern int acp_dvr_ispossible_update( void *p_param );
extern int acp_dvr_firmware_update( void *p_param );
extern int acp_dvr_end_command( int send_success, void *p_param );
extern int acp_dvr_check_ispstatus( void *p_param );
extern int acp_dvr_start_command( void *p_param );
extern void acp_dvr_set_firmupstatus( int ch, int flag );
extern int acp_dvr_get_firmupstatus( int ch );
extern int acp_dvr_set_curvideomode( int ch, int curvidmode, int vfmt );
extern int acp_dvr_get_curvideomode( int ch, int *pcurvidmode, int *pvfmt );
extern int acp_dvr_checkFWUpdateStatus( int cmd );
#endif //__ACP_FIRMWARE_UPDATE_H__
/*******************************************************************************
* End of file
*******************************************************************************/