43 lines
979 B
C
43 lines
979 B
C
#ifndef _APPLICATION_H
|
|
#define _APPLICATION_H
|
|
#include <appConfig.h>
|
|
#include <softTimerTask.h>
|
|
#include <systick_device.h>
|
|
#include <taskManager.h>
|
|
|
|
#include <lin_device.h>
|
|
#include <adc_device.h>
|
|
#include <gpio_device.h>
|
|
#include <gtimer_device.h>
|
|
#include <pmu_device.h>
|
|
#include <linStackTask.h>
|
|
|
|
#define APP_DIAG_GET_SDK_VERSION (0x0FU)
|
|
|
|
BEGIN_PACK
|
|
|
|
typedef struct{
|
|
uint16_t sdkApplication;
|
|
lin_stack_version_t linStack;
|
|
}CommVersion_t;
|
|
|
|
typedef struct{
|
|
uint16_t command;
|
|
union{
|
|
CommVersion_t Version;
|
|
};
|
|
}CommLedParamInfo_t;
|
|
|
|
END_PACK
|
|
|
|
|
|
uint8_t APPL_GetLEDState(void);
|
|
|
|
void APPL_TaskHandler(void);
|
|
void APPL_HandleControlCommands(LIN_Device_Frame_t const *frame);
|
|
/* Response enable */
|
|
uint8_t APPL_PrepareLedParamRequest(uint8_t reqSid,uint8_t *const dataBuff, DiagPublishInfo_t *const diagRsp);
|
|
uint8_t APPL_HandleLedParamConfigRequest(uint8_t reqSid,uint8_t *const dataBuff,DiagPublishInfo_t *const diagRsp);
|
|
|
|
|
|
#endif |