Board library for MAX32630FTHR platform
Dependencies: MAX14690
Dependents: FTHR_OLED MAX32630FTHR_ADC_Example Test_TFT_RT MAX32630FTHR_RGB ... more
Fork of max32630fthr by
MAX32630FTHR Class Reference
MAX32630FTHR Board Support Library. More...
#include <max32630fthr.h>
Public Types | |
enum | vio_t { VIO_1V8 = 0x00, VIO_3V3 = 0x01 } |
IO Voltage. More... | |
Public Member Functions | |
MAX32630FTHR () | |
MAX32630FTHR constructor. | |
MAX32630FTHR (vio_t vio) | |
MAX32630FTHR constructor. | |
~MAX32630FTHR () | |
MAX32630FTHR destructor. | |
int | init (vio_t hdrVio) |
Initialize MAX32630FTHR board. | |
int | vddioh (PinName pin, vio_t vio) |
Sets I/O Voltage. | |
Data Fields | |
I2C | i2c |
Local I2C bus for configuring PMIC and accessing BMI160 IMU. | |
MAX14690 | max14690 |
MAX14690 PMIC Instance. |
Detailed Description
MAX32630FTHR Board Support Library.
The MAX32630FTHR is a rapid development application board for ultra low power wearable applications. It includes common peripherals and expansion connectors all power optimized for getting the longest life from the battery. This library configures the power and I/O for the board.
https://www.maximintegrated.com/max32630fthr
#include "mbed.h" #include "max32630fthr.h" DigitalOut led1(LED1); MAX32630FTHR pegasus(MAX32630FTHR::VIO_3V3); // main() runs in its own thread in the OS // (note the calls to Thread::wait below for delays) int main() { // initialize power and I/O on MAX32630FTHR board pegasus.init(); while (true) { led1 = !led1; Thread::wait(500); } }
Definition at line 70 of file max32630fthr.h.
Member Enumeration Documentation
enum vio_t |
IO Voltage.
Enumerated options for operating voltage
- Enumerator:
VIO_1V8 1.8V IO voltage at headers (from BUCK2)
VIO_3V3 3.3V IO voltage at headers (from LDO2)
Definition at line 79 of file max32630fthr.h.
Constructor & Destructor Documentation
MAX32630FTHR | ( | ) |
MAX32630FTHR constructor.
Definition at line 41 of file max32630fthr.cpp.
MAX32630FTHR | ( | vio_t | vio ) |
MAX32630FTHR constructor.
Definition at line 46 of file max32630fthr.cpp.
~MAX32630FTHR | ( | ) |
MAX32630FTHR destructor.
Definition at line 52 of file max32630fthr.cpp.
Member Function Documentation
int init | ( | vio_t | hdrVio ) |
Initialize MAX32630FTHR board.
Initializes PMIC and I/O on MAX32630FTHR board. Configures PMIC to enable LDO2 and LDO3 at 3.3V. Disables resisitive pulldown on MON(AIN_0) Sets default I/O voltages to 3V3 for micro SD card. Sets I/O voltage for header pins to hdrVio specified.
- Parameters:
-
hdrVio I/O voltage for header pins
- Returns:
- 0 if no errors, -1 if error.
Definition at line 57 of file max32630fthr.cpp.
int vddioh | ( | PinName | pin, |
vio_t | vio | ||
) |
Sets I/O Voltage.
Sets the voltage rail to be used for a given pin. VIO_1V8 selects VDDIO which is supplied by Buck2, which is set at 1.8V, VIO_3V3 selects VDDIOH which is supplied by LDO2, which is typically 3.3V/
- Parameters:
-
pin Pin whose voltage supply is being assigned. vio Voltage rail to be used for specified pin.
- Returns:
- 0 if no errors, -1 if error.
Definition at line 109 of file max32630fthr.cpp.
Field Documentation
I2C i2c |
Local I2C bus for configuring PMIC and accessing BMI160 IMU.
Definition at line 125 of file max32630fthr.h.
MAX14690 max14690 |
MAX14690 PMIC Instance.
Definition at line 128 of file max32630fthr.h.
Generated on Thu Jul 14 2022 04:57:55 by 1.7.2