forked from jiangjie87481/mcu_uds_protol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uds_status.h
46 lines (41 loc) · 1.46 KB
/
uds_status.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
/***************************************************************************//**
\file uds-status.h
\author
\mail
\version 0
\date 2016-10-10
\description uds status code, include session and Security access
*******************************************************************************/
#ifndef __UDS_STATUS_H_
#define __UDS_STATUS_H_
/*******************************************************************************
Include Files
*******************************************************************************/
#include <stdint.h>
#include "uds_type.h"
/*******************************************************************************
Type Definition
*******************************************************************************/
/* SECURITYACCESS */
#define UNLOCKKEY 0x00000000
#define UNLOCKSEED 0x00000000
#define UNDEFINESEED 0xFFFFFFFF
#define SEEDMASK 0x80000000
#define SHIFTBIT 1
#define ALGORITHMASK 0x42303131
/*******************************************************************************
Function Definition
*******************************************************************************/
/**
* uds_security_access - check the key of Security Access
*
* @key_buf: recieved key buff
* @seed : original seed
*
* returns:
* 0 - success, -1 - fail
*/
int
uds_security_access (uint8_t key_buf[], uint8_t seed_buf[]);
#endif
/****************EOF****************/