view Small_CPU/Inc/uartProtocol_GNSS.h @ 910:7bd347bdaa81 Evo_2_23

Devbugfix Sample time resolution for longer dives: If a dive is longer than the provided replay buffer then the sample data is compressed. This compression was not considered in the previous version. As result the dive was replayed with double speed because a single sample were interpretated as 2 seconds instead of e.g. 4 seconds for a compressed sample. The comprassion rate is now considered in the simulator replay function
author Ideenmodellierer
date Tue, 15 Oct 2024 19:12:05 +0200
parents 2225c467f1e9
children
line wrap: on
line source

/**
  ******************************************************************************
  * @file    uartProtocol_GNSS.h
  * @author  heinrichs weikamp gmbh
  * @version V0.0.1
  * @date    30-Sep-2024
  * @brief	 Interface functionality for operation of gnss devices
  *
  @verbatim
  ==============================================================================
                        ##### How to use #####
  ==============================================================================
  @endverbatim
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; COPYRIGHT(c) 2014 heinrichs weikamp</center></h2>
  *
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef UART_PROTOCOL_GNSS_H
#define UART_PROTOCOL_GNSS_H

#ifdef __cplusplus
 extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "configuration.h"
#include "stm32f4xx_hal.h"

 typedef enum
  {
	UART_GNSS_INIT = 0,			/* Default Status for every sensor type */
	UART_GNSS_LOAD,				/* Load modul configuration */
	UART_GNSS_GET_ID,			/* get unique module ID */
	UART_GNSS_IDLE,				/* sensor detected and no communication pending */
	UART_GNSS_ERROR,
  	UART_GNSS_OPERATING,		/* normal operation => cyclic request of PVT data */
  } uartGnssStatus_t;

  typedef enum
  {
  	GNSSRX_READY = 0,			/* Initial state */
	GNSSRX_RECEIVING,			/* Pending data receiption */
  } receiveStateGnss_t;


void uartGnss_Control(void);
void uartGnss_ProcessData(void);
uint8_t uartSentinel_isSensorConnected();

#endif /* UART_PROTOCOL_GNSS_H */