26#ifndef LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32675_AFE_H_
27#define LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32675_AFE_H_
41#include "mxc_assert.h"
45#define AFE_REG_ADDR_BANK_POS 23
46#define AFE_REG_ADDR_BANK ((uint32_t)(0x03 << AFE_REG_ADDR_BANK_POS))
47#define AFE_REG_ADDR_POS 16
48#define AFE_REG_ADDR ((uint32_t)(0x7F << AFE_REG_ADDR_POS))
49#define AFE_REG_ADDR_LEN_POS 0
50#define AFE_REG_ADDR_LEN ((uint32_t)(0x07 << AFE_REG_ADDR_LEN_POS))
51#define AFE_REG_ADDR_READ_BIT 0x80
54#define AFE_ADC0_BANK 0
55#define AFE_ADC1_BANK 1
57#define AFE_HART_BANK 3
80int afe_write_register(uint32_t target_reg, uint32_t value);
91int afe_bank_write_register(uint32_t target_reg, uint8_t reg_bank, uint32_t value);
101int afe_read_register(uint32_t target_reg, uint32_t *value);
112int afe_bank_read_register(uint32_t target_reg, uint8_t reg_bank, uint32_t *value);
128void afe_dump_registers(uint32_t reg_bank);
Registers, Bit Masks and Bit Positions for the AFE_ADC_ONE Peripheral Module.
Registers, Bit Masks and Bit Positions for the AFE_ADC_ZERO Peripheral Module.
Registers, Bit Masks and Bit Positions for the AFE_DAC Peripheral Module.
Registers, Bit Masks and Bit Positions for the AFE_HART Peripheral Module.
Definition: tmr_regs.h:76