APM:Libraries
Classes | Macros | Functions
AnalogIn.h File Reference
#include <AP_HAL/AP_HAL.h>
#include "AP_HAL_F4Light.h"
#include "c++.h"
Include dependency graph for AnalogIn.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  F4Light::AnalogSource
 
class  F4Light::AnalogIn
 

Macros

#define F4Light_INPUT_MAX_CHANNELS   12
 
#define MMIO8(addr)   (*(volatile uint8_t *)(addr))
 
#define MMIO16(addr)   (*(volatile uint16_t *)(addr))
 
#define MMIO32(addr)   (*(volatile uint32_t *)(addr))
 
#define MMIO64(addr)   (*(volatile uint64_t *)(addr))
 
#define ST_VREFINT_CAL   MMIO16(0x1FFF7A2A)
 
#define ST_TSENSE_CAL1_30C   MMIO16(0x1FFF7A2C)
 
#define ST_TSENSE_CAL2_110   MMIO16(0x1FFF7A2E)
 
#define ANALOG_INPUT_F4Light_VCC   253
 

Functions

void setupADC (void)
 

Macro Definition Documentation

◆ ANALOG_INPUT_F4Light_VCC

#define ANALOG_INPUT_F4Light_VCC   253

◆ F4Light_INPUT_MAX_CHANNELS

#define F4Light_INPUT_MAX_CHANNELS   12

Definition at line 30 of file AnalogIn.h.

Referenced by F4Light::AnalogIn::_register_channel().

◆ MMIO16

#define MMIO16 (   addr)    (*(volatile uint16_t *)(addr))

Definition at line 35 of file AnalogIn.h.

◆ MMIO32

#define MMIO32 (   addr)    (*(volatile uint32_t *)(addr))

Definition at line 36 of file AnalogIn.h.

◆ MMIO64

#define MMIO64 (   addr)    (*(volatile uint64_t *)(addr))

Definition at line 37 of file AnalogIn.h.

◆ MMIO8

#define MMIO8 (   addr)    (*(volatile uint8_t *)(addr))

Definition at line 34 of file AnalogIn.h.

◆ ST_TSENSE_CAL1_30C

#define ST_TSENSE_CAL1_30C   MMIO16(0x1FFF7A2C)

Definition at line 42 of file AnalogIn.h.

◆ ST_TSENSE_CAL2_110

#define ST_TSENSE_CAL2_110   MMIO16(0x1FFF7A2E)

Definition at line 43 of file AnalogIn.h.

◆ ST_VREFINT_CAL

#define ST_VREFINT_CAL   MMIO16(0x1FFF7A2A)

Definition at line 41 of file AnalogIn.h.

Function Documentation

◆ setupADC()

void setupADC ( void  )