brazos-trapezoidal
IntegrationCalibration.h
1/*
2 * IntegrationCalibration.h
3 *
4 * Created on: 10 de set de 2021
5 * Author: lucas
6 */
7
8#ifndef INTEGRATIONCALIBRATION_H_
9#define INTEGRATIONCALIBRATION_H_
10
11#include "IntegrationCalibration_prm.h"
12#include "mc_types.h"
13
17typedef enum
18{
19 INTCALIB_FLASH_OPERATION_NONE = 0,
20 INTCALIB_FLASH_OPERATION_WRITE,
21 INTCALIB_FLASH_OPERATION_CLEAR,
22 INTCALIB_FLASH_OPERATION_POST_WRITE
23}INTCALIB_FLASH_OPERATION_TYPE;
24
25typedef struct
26{
27 INTCALIB_FLASH_OPERATION_TYPE IntCalib_RequestFlashOperation;
28 volatile uint16_t IntCalib_Total_bytes_requested;
29 volatile uint32_t IntCalib_Address_to_write;
30 uint8_t IntCalib_BufferWriteAux[NUMBER_PARAMETERS * 4];
32
33
34void IntegrationCalibration__Initialize();
35void IntegrationCalibration__Handler();
36void IntegrationCalibration__InsertDataInBuffer(uint8_t * value, uint16_t num_bytes, uint16_t start_position);
37void IntegrationCalibration__ClearWriteBuffer();
38void IntegrationCalibration__ResetFlashOperation();
39INTCALIB_FLASH_OPERATION_TYPE IntegrationCalibration__GetRequestFlashOperation();
40BOOL_TYPE IntegrationCalibration__RequestFlashOperation(INTCALIB_FLASH_OPERATION_TYPE request_type, uint32_t address_to_write, uint16_t total_bytes_requested);
41
42#endif /* INTEGRATIONCALIBRATION_H_ */
Contains generic typedefs that are able to change in case of different processors.