embedded/projects/osp-steval-mki109v2/sources/app/sensoracq_t.c
void SendDataReadyIndication( uint8_t sensorId, uint32_t timeStamp )
{
    MessageBuffer *pSendMsg = NULLP;

    ASF_assert( ASFCreateMessage( MSG_SENSOR_DATA_RDY, sizeof(MsgSensorDataRdy), &pSendMsg ) == ASF_OK );
    pSendMsg->msg.msgSensorDataRdy.sensorId = sensorId;
    pSendMsg->msg.msgSensorDataRdy.timeStamp = timeStamp;
    ASF_assert( ASFSendMessage( SENSOR_ACQ_TASK_ID, pSendMsg ) == ASF_OK );

}
/****************************************************************************************************
 * @fn      SendDataReadyIndication
 * @brief  This helper function sends data ready indication to Sensor Acq task. Called from ISR
 * @param  sensorId: Sensor identifier whose data is ready to be read
 * @return None
 *
 ***************************************************************************************************/
@fn      SendDataReadyIndication
@brief  This helper function sends data ready indication to Sensor Acq task. Called from ISR
@param  sensorId: Sensor identifier whose data is ready to be read
@return None
@fn SendDataReadyIndication @brief This helper function sends data ready indication to Sensor Acq task . Called from ISR @param sensorId : Sensor identifier whose data is ready to be read @return None
void SendDataReadyIndication( uint8_t sensorId, uint32_t timeStamp )
{
    MessageBuffer *pSendMsg = NULLP;
    ASF_assert( ASFCreateMessage( MSG_SENSOR_DATA_RDY, sizeof(MsgSensorDataRdy), &pSendMsg ) == ASF_OK );
    pSendMsg->msg.msgSensorDataRdy.sensorId = sensorId;
    pSendMsg->msg.msgSensorDataRdy.timeStamp = timeStamp;
    ASF_assert( ASFSendMessage( SENSOR_ACQ_TASK_ID, pSendMsg ) == ASF_OK );
}
void SendDataReadyIndication ( uint8_t sensorId , uint32_t timeStamp ) { MessageBuffer * pSendMsg = NULLP ; ASF_assert ( ASFCreateMessage ( MSG_SENSOR_DATA_RDY , sizeof ( MsgSensorDataRdy ) , & pSendMsg ) == ASF_OK ) ; pSendMsg -> msg . msgSensorDataRdy . sensorId = sensorId ; pSendMsg -> msg . msgSensorDataRdy . timeStamp = timeStamp ; ASF_assert ( ASFSendMessage ( SENSOR_ACQ_TASK_ID , pSendMsg ) == ASF_OK ) ; }
@fn      SendDataReadyIndication
 @brief  This helper function sends data ready indication to Sensor Acq task.
@fn SendDataReadyIndication @brief This helper function sends data ready indication to Sensor Acq task .