Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: MAX32620FTHR_Pmic MAX32620FTHR_Pmic_Boot MAX32620FTHR_GPS_Tracker firmware_framework1
Fork of MAX32620FTHR by
MAX32620FTHR Class Reference
MAX32620FTHR Board Support Library. More...
#include <MAX32620FTHR.h>
Public Types | |
| enum | vio_t { VIO_1V8 = 0x00, VIO_3V3 = 0x01 } |
IO Voltage. More... | |
Public Member Functions | |
| MAX32620FTHR () | |
| MAX32620FTHR constructor. | |
| MAX32620FTHR (vio_t vio) | |
| MAX32620FTHR constructor. | |
| ~MAX32620FTHR () | |
| MAX32620FTHR destructor. | |
| int | init (vio_t hdrVio) |
| Initialize MAX32620FTHR board. | |
| int | vddioh (PinName pin, vio_t vio) |
| Sets I/O Voltage. | |
Detailed Description
MAX32620FTHR Board Support Library.
The MAX32620FTHR 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/max32620fthr
#include "mbed.h" #include "MAX32620FTHR.h" DigitalOut led1(LED1); // Initialize I/O voltages on MAX32620FTHR board MAX32620FTHR fthr(MAX32620FTHR::VIO_3V3); // main() runs in its own thread in the OS // (note the calls to Thread::wait below for delays) int main() { while (true) { led1 = !led1; Thread::wait(500); } }
Definition at line 68 of file MAX32620FTHR.h.
Member Enumeration Documentation
| enum vio_t |
IO Voltage.
Enumerated options for operating voltage
- Enumerator:
VIO_1V8 1.8V IO voltage at headers (from BUCK0)
VIO_3V3 3.3V IO voltage at headers (from BUCK2)
Definition at line 77 of file MAX32620FTHR.h.
Constructor & Destructor Documentation
| MAX32620FTHR | ( | ) |
MAX32620FTHR constructor.
Definition at line 41 of file MAX32620FTHR.cpp.
| MAX32620FTHR | ( | vio_t | vio ) |
MAX32620FTHR constructor.
Definition at line 46 of file MAX32620FTHR.cpp.
| ~MAX32620FTHR | ( | ) |
MAX32620FTHR destructor.
Definition at line 52 of file MAX32620FTHR.cpp.
Member Function Documentation
| int init | ( | vio_t | hdrVio ) |
Initialize MAX32620FTHR board.
Initializes I/O voltage on MAX32620FTHR board. Sets I/O voltage for LEDs to 3.3V and 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 MAX32620FTHR.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 Buck0, which is set at 1.8V, VIO_3V3 selects VDDIOH which is supplied by Buck2, 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 111 of file MAX32620FTHR.cpp.
Generated on Thu Jul 14 2022 04:29:43 by
1.7.2
