| BlueNRG-1 Peripherals drivers Examples

- Main Page
- Modules
- Classes
- Files

Macros | Functions | Variables
ADC PDM Example
BlueNRG1 Standard Peripheral Examples » ADC Examples

## Macros

#define | FS 8000
#define | UART_BAUDRATE (512000)
#define | PCM_BUFFER_SIZE 16

## Functions

void | ADC_Configuration (void)
| ADC_Configuration. More...
void | DMA_Configuration (void)
| DMA_Configuration. More...
int | main (void)
| Main program. More...
void | TC_IT_Callback (void)
| DMA Transfer Complete Callback. More...
void | HT_IT_Callback (void)
| DMA Half Transfer Callback. More...

## Variables

ADC_InitType | xADC_InitType
int16_t | PCM_Buffer [PCM_BUFFER_SIZE]

## Detailed Description

## Macro Definition Documentation

#define FS 8000

Definition at line 222 of file ADC_PDM_main.c.

#define PCM_BUFFER_SIZE 16

Definition at line 230 of file ADC_PDM_main.c.

#define UART_BAUDRATE (512000)

Definition at line 225 of file ADC_PDM_main.c.

## Function Documentation

void ADC_Configuration | ( | void |  | ) |

ADC_Configuration.

Parameters

  None |

Return values

  None |

Definition at line 312 of file ADC_PDM_main.c.

void DMA_Configuration | ( | void |  | ) |

DMA_Configuration.

Parameters

  None |

Return values

  None |

Definition at line 343 of file ADC_PDM_main.c.

void HT_IT_Callback | ( | void |  | ) |

DMA Half Transfer Callback.

Parameters

  None |

Return values

  None |

Definition at line 407 of file ADC_PDM_main.c.

int main | ( | void |  | ) |

Main program.

Parameters

  None |

Return values

  None |

Definition at line 251 of file ADC_PDM_main.c.

void TC_IT_Callback | ( | void |  | ) |

DMA Transfer Complete Callback.

Parameters

  None |

Return values

  None |

Definition at line 389 of file ADC_PDM_main.c.

## Variable Documentation

int16_t PCM_Buffer[PCM_BUFFER_SIZE]

Definition at line 236 of file ADC_PDM_main.c.

ADC_InitType xADC_InitType

Definition at line 235 of file ADC_PDM_main.c.