以CAN发送为例,当某帧报文需要发送的时候,调用的发送接口会有一个返回状态值,该值表明当前数据的发送请求状态。比如:CanIf_Transmit()接口会有一个Std_ReturnType类型的返回状态(E_OK、E_NOT_OK)。 E_OK:表明当前数据已经成功放入底层硬件缓存区中,发送请求成功,之后等待发送。 E_NOT_OK:表明当前数据未能成功...
Autosar长函数声明指的是在Autosar标准中使用的一种函数声明方式,用于声明一些较为复杂的函数或者函数体较长的函数。 具体来说,Autosar长函数声明的格式为: Std_ReturnType FunctionName(P1Type P1Name, ..., PnType PnName) { /*函数体*/ } 其中,Std_ReturnType表示函数的返回值类型,FunctionName表示函数的...
对应的函数接口: externStd_ReturnTypeDcm_SessionControlClass_Check(Dcm_NegativeResponseCodeType*Nrc_u8,uint8Sid_u8);externStd_ReturnTypeDcmAppl_UserServiceModeRuleService(Dcm_NegativeResponseCodeType*Nrc_u8,uint8Sid_u8);externStd_ReturnTypeDcm_Programming_SessionControl_Check(Dcm_NegativeResponseCodeType*...
Std_ReturnType (*WriteRamBlockToNvm_pfct)(void* NvMBuffer); /** * Block management type. * TRACE[NVM062_Conf] Parameter NvMBlockDescriptor:NvMBlockManagementType */ NvM_BlockManagementType BlockManagementType_en; /** * Block job priority. * TRACE[NVM477_Conf] Parameter NvMBlockDescriptor:NvMBlo...
1.Std_ReturnType Fvm_SetTripResetSyncMsg(uint16 syncId,uint32 tripcnt, uint32 resetCnt); 2. 3.Std_ReturnType Fvm_GetTripResetSyncMsg(uint16 syncId, uint32* tripCnt, uint32* resetCnt); 4. 5.void Fvm_ResetTripCounter (void);
Std_ReturnType Rte_[Byps_]Read__<o>( [IN Rte_Instance <instance>], OUT <data>, [OUT Std_TransformerError transformerError], [OUT uint8* metaDataPtr]) 此处很明显的差异,Read函数中没有Runnable的定义,也就是说,Read函数和Runnable无关。 调用接口...
Std_ReturnType Dcm_SetActiveDiagnostic(boolean active) { /* Multicore: No lock necessary as its an atomic operation . * Also, the application has to take care of calling Dcm_SetActiveDiagnostic() before Dcm calls CheckActiveDiagnostics from RxIndication. */ /*Check if the data active parameter...
FUNC(void, BSWM_CODE) BswM_Action_BswM_AI_AppReqFullCom(P2VAR(Std_ReturnType, AUTOMATIC, BSWM_APPL_DATA) action_RetVal_pu8) {/* Initialize to"no return value" */*action_RetVal_pu8 = BSWM_NO_RET_VALUE;/* Switch the communication mode for a ComM User-ComMUser_Can_Cluster_Channel */...
//一般通信发送 Std_ReturnType PduR_ComTransmit(PduIdType ComTxPduId, const PduInfoType* PduInfoPtr); Std_ReturnType CanIf_Transmit(PduIdType CanTxPduId,const PduInfoType *PduInfoPtr) // 诊断发送 Std_ReturnType PduR_DcmTransmit(PduIdType DcmTxPduId, const PduInfoType* PduInfoPtr); Std_Ret...
/** Adc_GroupType有4钟状态:ADC_IDLE, ADC_BUSY, ADC_COMPLETED, ADC_STREAM_COMPLETED */Adc_StatusTypeAdc_GetGroupStatus(Adc_GroupType Group); A车灯ADC相关代码实现: VAR(Adc_ValueGroupType, AUTOMATIC) AdcRawBuffer[6]; Std_ReturnType retValue = RTE_E_OK; retValue = Adc_SetupResultBuffer(Adc...