/* Function to receive a PIMA event container from the attached still image device. */
uint8_t SImage_ReceiveEventHeader(void)
/* Function to receive a PIMA event container from the attached still image device. */
uint8_t SImage_ReceiveEventHeader(void)
{
	uint8_t ErrorCode;
	Pipe_SelectPipe(SIMAGE_EVENTS_PIPE);
	Pipe_Unfreeze();
	ErrorCode = Pipe_Read_Stream_LE(&PIMA_EventBlock, sizeof(PIMA_EventBlock), NULL);
	Pipe_ClearIN();
	Pipe_Freeze();
	return ErrorCode;
}