ADS_BP
Macros | Functions
process.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include "arm_math.h"
#include "driverlib/uart.h"
#include "driverlib/pwm.h"
#include "driverlib/adc.h"
#include "inc/hw_ints.h"
#include "driverlib/interrupt.h"
#include "inc/hw_timer.h"
#include "driverlib/timer.h"
#include "inc/hw_memmap.h"
#include "ADS1299.h"
Include dependency graph for process.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COMM_UARTPORT   UART1_BASE
 
#define COMM_UARTINT   INT_UART1
 
#define WT12_NOTPRESENT   0x00
 
#define WT12_PRESENT   0x01
 
#define WT12_CONNECTED   0x02
 
#define AN_INPUT   ADC_CTL_CH0
 
#define R1_DIVIDER   10000
 
#define R2_DIVIDER   4750
 
#define K_DIVIDER   (R1_DIVIDER+R2_DIVIDER)/R2_DIVIDER
 
#define AN_INPUT_NTC   ADC_CTL_CH5
 
#define R_DIVIDER_NTC   5600
 
#define R_PARALLEL_NTC   10000
 
#define NTC_25_RESISTANCE   10000
 
#define NTC_B_PARAMETER   3435
 
#define NTC_T0_PARAMETER   25
 
#define NTC_R_PARAMETER   (NTC_25_RESISTANCE*exp(-NTC_B_PARAMETER/NTC_T0_PARAMETER)))
 

Functions

void ResetFilterArrays (unsigned char nCh)
 Needed to reset the history of the filters and delete the previous states. More...
 
float32_t FilterSample (float32_t inData, unsigned char filterIndex)
 It calls the routines for filtering a new sample. More...
 
void UARTReceive4Bytes (uint32_t *ptr)
 This function can be used to easily handle the reception on the UART of 4bytes sized variables, e. g. float. More...
 
void UARTSend4Bytes (unsigned char *ptr)
 This function can be used to easily handle the transmit on the UART of 4bytes sized variables, e. g. float. More...
 
void UARTSendByte (unsigned char byte)
 This function can be used to easily handle the transmission on the UART of one byte. It is meant for the application of flow control. More...
 

Detailed Description

Header file of process module of the ALC-D project.

 ----------------— Function Description ---------------—
The process.h file contains all defines, structures and
prototypes needed for the process.c file.
 ----------------------— Updates ----------------------—
2015-10-01  /   Enzo Mastinu        / Creation

Function Documentation

§ FilterSample()

float32_t FilterSample ( float32_t  inData,
unsigned char  filterIndex 
)

It calls the routines for filtering a new sample.

Parameters
[in]inDatafloat input value
[in]filterIndexindex of the channel which the sample belongs
Returns
float output value.

This function contains the routines needed to apply digital filters to the data in a on-fly technique. This means that the latest acquired sample is passed through the filters and the filtered version is returned by this function.

Measured Execution Time @80MHz: 13/07/2016 -> 3 us

§ ResetFilterArrays()

void ResetFilterArrays ( unsigned char  nCh)

Needed to reset the history of the filters and delete the previous states.

Parameters
[in]nChnumber of channels
Returns
none.

Measured Execution Time @80MHz: 13/07/2016 -> 16 us

§ UARTReceive4Bytes()

void UARTReceive4Bytes ( uint32_t *  ptr)

This function can be used to easily handle the reception on the UART of 4bytes sized variables, e. g. float.

Parameters
[in]*ptrpoints the variable to receive
Returns
none.

§ UARTSend4Bytes()

void UARTSend4Bytes ( unsigned char *  ptr)

This function can be used to easily handle the transmit on the UART of 4bytes sized variables, e. g. float.

Parameters
[in]*ptrpoints the variable to send
Returns
none.
Here is the call graph for this function:

§ UARTSendByte()

void UARTSendByte ( unsigned char  byte)

This function can be used to easily handle the transmission on the UART of one byte. It is meant for the application of flow control.

Parameters
[in]byteto send
Returns
none.
Here is the caller graph for this function: