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

스티어링 휠 버튼 입력 메시지 전송 함수 구현 More...

Functions

void SendButtonMessage (byte buttonId, byte buttonAction, word pressDuration)
 스티어링 휠 버튼 입력 메시지를 전송하는 함수
 

Detailed Description

스티어링 휠 버튼 입력 메시지 전송 함수 구현

Function Documentation

◆ SendButtonMessage()

void SendButtonMessage ( byte buttonId,
byte buttonAction,
word pressDuration )

스티어링 휠 버튼 입력 메시지를 전송하는 함수

Parameters
buttonId버튼 식별자 (0~15)
buttonAction버튼 액션 (0: 눌림, 1: 놓임, 2: 길게 눌림)
pressDuration버튼 눌림 지속 시간 (ms)

버튼 입력 정보를 L004_SW_Button_Input 메시지로 전송하며, E2E 보호를 위한 CRC16 체크섬을 계산하여 포함

Note
전역 이벤트 카운터를 자동으로 증가시켜 메시지 시퀀스를 관리
Here is the caller graph for this function: