TTK4155 Ping-pong project
adc_driver_node2.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int adc_init (void)
 Function to initialize adc. More...
 
uint16_t adc_read (int ch)
 Read adc value. More...
 

Function Documentation

◆ adc_init()

int adc_init ( void  )

Function to initialize adc.

brief Function to initialize adc.

Function to initialize adc.

brief Function to initialize adc.

<

Todo:
Need to init ADC before SRAM in main. They should not be dependent

<

Todo:
Change to bolean with <stdbool.h>

<

Todo:
Need to init ADC before SRAM in main. They should not be dependent

<

Todo:
Change to bolean with <stdbool.h>
Here is the caller graph for this function:

◆ adc_read()

uint16_t adc_read ( int  ch)

Read adc value.

Parameters
chADC channel.

< Start address for the ADC

< Wait for ADC conversion to complete

< Start address for the ADC

< Wait for ADC conversion to complete

Here is the caller graph for this function: