RBS
 
Loading...
Searching...
No Matches
ZCU_Center_Functions.cin File Reference

ZCU_Center의 모든 함수 정의 More...

Functions

byte PerformSecureBoot ()
 시스템 부팅 시 보안 검증을 수행
 
void OnEnterFailSafe ()
 FAIL_SAFE 상태 진입 시 호출되는 함수
 
void OnEnterDegraded ()
 DEGRADED 상태 진입 시 호출되는 함수
 
void OnEnterNormal ()
 NORMAL 상태 진입 시 호출되는 함수
 
void TransitionToState (enum SystemState newState)
 시스템 상태 간의 전환을 관리
 
void UpdateSystemState ()
 현재 폴트 레지스터를 기반으로 시스템 상태를 업데이트
 
void ClearFault (dword faultBit)
 폴트 레지스터에서 특정 폴트 비트를 지움
 
void SetFault (dword faultBit)
 폴트 레지스터에 특정 폴트 비트를 설정하고 상태 업데이트를 트리거
 
byte ValidateButtonInput (byte buttonID, byte buttonAction, word pressDuration, dword currentTime)
 버튼 입력의 유효성을 검증
 
byte ValidateVoiceInput (byte commandType, byte commandValue, byte confidence, dword currentTime)
 음성 입력의 유효성을 검증
 
byte DetermineRequestedModeFromButton (byte buttonID, byte buttonAction)
 버튼 입력을 기반으로 모드 변경 요청을 생성
 
byte DetermineRequestedModeFromVoice (byte commandType, byte commandValue)
 음성 입력을 기반으로 모드 변경 요청을 생성
 
void UpdateClusterDisplay ()
 클러스터 디스플레이를 업데이트
 
void UpdateOTAComfortMode (byte profileType)
 OTA 편안한 모드 활성화 여부에 따른 UI 업데이트
 
void SendModeChangeRequest (byte requestedMode, byte requestSource, byte profileType)
 모드 변경 요청 메시지(M008)를 전송
 
void SendFailSafeStatus (byte faultLevel)
 Fail-Safe 상태 메시지(M004)를 전송
 
void SendDiagnosticData ()
 진단 데이터 메시지(M016)를 전송
 
byte VerifyE2EProtection (byte dataArray[], int dataLength, word receivedCRC)
 CAN 메시지의 E2E 보호 검증
 
void PerformDiagnostics ()
 주기적인 진단 검사를 수행
 
void MonitorCommunication ()
 HPC와의 통신 타임아웃을 모니터링
 
void PerformWatchdog ()
 메인 루프가 실행 중인지 확인하기 위해 워치독 검사를 수행
 
void InitializeGlobals ()
 시작 시 모든 전역 변수를 기본 상태로 초기화
 
void PerformInitialSelfTest ()
 시작 시 HMI 시스템에 대한 자체 테스트를 수행
 
void HandleStartEvent ()
 'on start' 이벤트 핸들러 로직을 처리
 
void HandleStopEvent ()
 'on stopMeasurement' 이벤트 핸들러 로직을 처리
 
void HandleMainTaskTimer ()
 'on timer timerMainTask' 이벤트 핸들러 로직을 처리
 
void HandleVoiceCommandMessage (message L003_Voice_Command msg)
 'on message L003_Voice_Command' 이벤트 핸들러 로직을 처리
 
void HandleSwButtonInputMessage (message L004_SW_Button_Input msg)
 'on message L004_SW_Button_Input' 이벤트 핸들러 로직을 처리
 
void HandleModeChangeRespMessage (message M009_Mode_Change_Resp msg)
 'on message M009_Mode_Change_Resp' 이벤트 핸들러 로직을 처리
 
void HandleClusterDisplayMessage (message M012_Cluster_Display msg)
 'on message M012_Cluster_Display' 이벤트 핸들러 로직을 처리
 
void HandleFaultInjectionKey ()
 'on key 'f'' 이벤트 핸들러 로직을 처리
 
void HandleSimulateVoiceKey ()
 'on key 'v'' 이벤트 핸들러 로직을 처리 (음성 명령 시뮬레이션)
 
void HandleStatusDisplayKey ()
 'on key 's'' 이벤트 핸들러 로직을 처리
 
void HandleClusterTestKey ()
 'on key 't'' 이벤트 핸들러 로직을 처리 (클러스터 테스트)
 

Detailed Description

ZCU_Center의 모든 함수 정의

Function Documentation

◆ ClearFault()

void ClearFault ( dword faultBit)

폴트 레지스터에서 특정 폴트 비트를 지움

Parameters
faultBit지울 폴트 비트
Here is the caller graph for this function:

◆ DetermineRequestedModeFromButton()

byte DetermineRequestedModeFromButton ( byte buttonID,
byte buttonAction )

버튼 입력을 기반으로 모드 변경 요청을 생성

Parameters
buttonID버튼 ID
buttonAction버튼 액션
Returns
요청할 모드 (실패시 0xFF)
Here is the caller graph for this function:

◆ DetermineRequestedModeFromVoice()

byte DetermineRequestedModeFromVoice ( byte commandType,
byte commandValue )

음성 입력을 기반으로 모드 변경 요청을 생성

Parameters
commandType명령 타입
commandValue명령 값
Returns
요청할 모드 (실패시 0xFF)
Here is the caller graph for this function:

◆ HandleClusterDisplayMessage()

void HandleClusterDisplayMessage ( message M012_Cluster_Display msg)

'on message M012_Cluster_Display' 이벤트 핸들러 로직을 처리

Parameters
msg수신된 클러스터 표시 데이터 메시지
Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleClusterTestKey()

void HandleClusterTestKey ( )

'on key 't'' 이벤트 핸들러 로직을 처리 (클러스터 테스트)

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleFaultInjectionKey()

void HandleFaultInjectionKey ( )

'on key 'f'' 이벤트 핸들러 로직을 처리

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleMainTaskTimer()

void HandleMainTaskTimer ( )

'on timer timerMainTask' 이벤트 핸들러 로직을 처리

Here is the call graph for this function:

◆ HandleModeChangeRespMessage()

void HandleModeChangeRespMessage ( message M009_Mode_Change_Resp msg)

'on message M009_Mode_Change_Resp' 이벤트 핸들러 로직을 처리

Parameters
msg수신된 모드 변경 응답 메시지
Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleSimulateVoiceKey()

void HandleSimulateVoiceKey ( )

'on key 'v'' 이벤트 핸들러 로직을 처리 (음성 명령 시뮬레이션)

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleStartEvent()

void HandleStartEvent ( )

'on start' 이벤트 핸들러 로직을 처리

Here is the call graph for this function:

◆ HandleStatusDisplayKey()

void HandleStatusDisplayKey ( )

'on key 's'' 이벤트 핸들러 로직을 처리

Here is the caller graph for this function:

◆ HandleStopEvent()

void HandleStopEvent ( )

'on stopMeasurement' 이벤트 핸들러 로직을 처리

◆ HandleSwButtonInputMessage()

void HandleSwButtonInputMessage ( message L004_SW_Button_Input msg)

'on message L004_SW_Button_Input' 이벤트 핸들러 로직을 처리

Parameters
msg수신된 스티어링 휠 버튼 입력 메시지
Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleVoiceCommandMessage()

void HandleVoiceCommandMessage ( message L003_Voice_Command msg)

'on message L003_Voice_Command' 이벤트 핸들러 로직을 처리

Parameters
msg수신된 음성 명령 메시지
Here is the call graph for this function:
Here is the caller graph for this function:

◆ InitializeGlobals()

void InitializeGlobals ( )

시작 시 모든 전역 변수를 기본 상태로 초기화

Note
시스템 시작 시 모든 데이터 구조체와 변수를 안전한 초기값으로 설정
Here is the caller graph for this function:

◆ MonitorCommunication()

void MonitorCommunication ( )

HPC와의 통신 타임아웃을 모니터링

Note
설정된 타임아웃 시간을 초과하면 통신 폴트를 설정
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnEnterDegraded()

void OnEnterDegraded ( )

DEGRADED 상태 진입 시 호출되는 함수

Note
제한된 기능으로 작동함을 알림
Here is the caller graph for this function:

◆ OnEnterFailSafe()

void OnEnterFailSafe ( )

FAIL_SAFE 상태 진입 시 호출되는 함수

Note
시스템 안전을 보장하기 위해 HMI 처리를 중지하고 고장 상태를 전파
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnEnterNormal()

void OnEnterNormal ( )

NORMAL 상태 진입 시 호출되는 함수

Note
완전한 기능으로 작동 중임을 알림
Here is the caller graph for this function:

◆ PerformDiagnostics()

void PerformDiagnostics ( )

주기적인 진단 검사를 수행

Note
CPU, 메모리 사용량 및 동작 시간을 업데이트하고 과부하 상태를 감지
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PerformInitialSelfTest()

void PerformInitialSelfTest ( )

시작 시 HMI 시스템에 대한 자체 테스트를 수행

Note
클러스터 연결 상태 및 HMI 입력 시스템의 초기 상태를 확인
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PerformSecureBoot()

byte PerformSecureBoot ( )

시스템 부팅 시 보안 검증을 수행

Returns
검증 성공 시 1, 실패 시 0
Note
펌웨어 서명을 검증하여 변조된 소프트웨어 실행을 방지
Here is the caller graph for this function:

◆ PerformWatchdog()

void PerformWatchdog ( )

메인 루프가 실행 중인지 확인하기 위해 워치독 검사를 수행

Note
설정된 시간 내에 응답이 없으면 시스템 과부하 폴트를 설정
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SendDiagnosticData()

void SendDiagnosticData ( )

진단 데이터 메시지(M016)를 전송

Note
주기적으로 시스템 상태를 보고
Here is the caller graph for this function:

◆ SendFailSafeStatus()

void SendFailSafeStatus ( byte faultLevel)

Fail-Safe 상태 메시지(M004)를 전송

Parameters
faultLevel보고할 폴트 레벨
Note
시스템 고장 발생 시 다른 ECU에 상태를 전파
Here is the caller graph for this function:

◆ SendModeChangeRequest()

void SendModeChangeRequest ( byte requestedMode,
byte requestSource,
byte profileType )

모드 변경 요청 메시지(M008)를 전송

Parameters
requestedMode요청할 모드
requestSource요청 소스 (버튼/음성)
profileType프로파일 타입
Here is the caller graph for this function:

◆ SetFault()

void SetFault ( dword faultBit)

폴트 레지스터에 특정 폴트 비트를 설정하고 상태 업데이트를 트리거

Parameters
faultBit설정할 폴트 비트
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TransitionToState()

void TransitionToState ( enum SystemState newState)

시스템 상태 간의 전환을 관리

Parameters
newState전환할 새로운 상태
Note
상태 변경 시 해당 상태의 진입 함수를 호출
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateClusterDisplay()

void UpdateClusterDisplay ( )

클러스터 디스플레이를 업데이트

Note
현재 클러스터 표시 데이터를 기반으로 실제 클러스터 하드웨어를 제어
Here is the caller graph for this function:

◆ UpdateOTAComfortMode()

void UpdateOTAComfortMode ( byte profileType)

OTA 편안한 모드 활성화 여부에 따른 UI 업데이트

Parameters
profileType활성 프로파일
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateSystemState()

void UpdateSystemState ( )

현재 폴트 레지스터를 기반으로 시스템 상태를 업데이트

Note
활성화된 폴트를 평가하고 적절한 시스템 상태를 결정
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ValidateButtonInput()

byte ValidateButtonInput ( byte buttonID,
byte buttonAction,
word pressDuration,
dword currentTime )

버튼 입력의 유효성을 검증

Parameters
buttonID버튼 ID
buttonAction버튼 액션
pressDuration눌림 지속 시간
currentTime현재 시간
Returns
유효하면 1, 유효하지 않으면 0
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ValidateVoiceInput()

byte ValidateVoiceInput ( byte commandType,
byte commandValue,
byte confidence,
dword currentTime )

음성 입력의 유효성을 검증

Parameters
commandType명령 타입
commandValue명령 값
confidence신뢰도
currentTime현재 시간
Returns
유효하면 1, 유효하지 않으면 0
Here is the call graph for this function:
Here is the caller graph for this function:

◆ VerifyE2EProtection()

byte VerifyE2EProtection ( byte dataArray[],
int dataLength,
word receivedCRC )

CAN 메시지의 E2E 보호 검증

Parameters
dataArray데이터 배열
dataLength데이터 길이
receivedCRC수신된 CRC 값
Returns
검증 성공 시 1, 실패 시 0
Here is the caller graph for this function: