- Main Page
- Modules
- Data Structures
- Files
- Directories

# e_ad_conv.h File Reference

Module for the Analogic/Digital conversion. More...

## Functions
void | e_init_ad (void)
| Initialize all the A/D register needed.
int | e_read_ad (unsigned int channel)
| Function to sample an AD channel.

## Detailed Description

Module for the Analogic/Digital conversion.

Author:
  Code: Lucas Meier & Francesco Mondada, Michael Bonami
  Doc: Jonathan Besuchet

## Function Documentation

void e_init_ad | ( | void |  | ) |

Initialize all the A/D register needed.

int e_read_ad | ( | unsigned int | channel | ) |

Function to sample an AD channel.

Parameters:

  | channel | The A/D channel you want to sample Must be between 0 to 15

Returns:
  The sampled value on the specified channel