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.
Dependencies: MAX5216_16_Bit_DAC_SPI_Bus_Driver USBDevice max32630fthr
Revision 3:601454551d3a, committed 2018-09-06
- Comitter:
- phonemacro
- Date:
- Thu Sep 06 21:24:17 2018 +0000
- Parent:
- 2:5f8cd1facd15
- Commit message:
- Updated method names to comply with Mbed coding standard
Changed in this revision
| MAX5216_16_Bit_DAC_SPI_Bus_Driver.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MAX5216_16_Bit_DAC_SPI_Bus_Driver.lib Sat Aug 18 09:38:25 2018 +0000 +++ b/MAX5216_16_Bit_DAC_SPI_Bus_Driver.lib Thu Sep 06 21:24:17 2018 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/teams/MaximIntegrated/code/MAX5216_16_Bit_DAC_SPI_Bus_Driver/#cd8d96483262 +https://os.mbed.com/teams/MaximIntegrated/code/MAX5216_16_Bit_DAC_SPI_Bus_Driver/#1132d5fab5c7
--- a/main.cpp Sat Aug 18 09:38:25 2018 +0000
+++ b/main.cpp Thu Sep 06 21:24:17 2018 +0000
@@ -74,25 +74,25 @@
spi.frequency(24000000); // Use 24 MHz SPI bus
// Command values to the DAC
- dac.writeCommand(MAX5216::WrtThru_Reg, 0xFFFF);
+ dac.write_command(MAX5216::WrtThru_Reg, 0xFFFF);
wait(1.0);
gLED = LED_OFF;
- dac.writeCommand(MAX5216::WrtThru_Reg, 0x7FFF);
+ dac.write_command(MAX5216::WrtThru_Reg, 0x7FFF);
wait(1.0);
gLED = LED_ON;
- dac.writeCommand(MAX5216::WrtThru_Reg, 0x3FFF);
+ dac.write_command(MAX5216::WrtThru_Reg, 0x3FFF);
wait(1.0);
gLED = LED_OFF;
- dac.writeCommand(MAX5216::WrtThru_Reg, 0x1FFF);
+ dac.write_command(MAX5216::WrtThru_Reg, 0x1FFF);
wait(1.0);
rLED = LED_ON;
gLED = LED_ON;
// Issue Power Down Commands
-// dac.writeCommand(MAX5216::PwrDwn_Reg, MAX5216::PwrDwnNormalOp);
- dac.writeCommand(MAX5216::PwrDwn_Reg, MAX5216::PwrDwnHiZ);
-// dac.writeCommand(MAX5216::PwrDwn_Reg, MAX5216::PwrDwn100K);
-// dac.writeCommand(MAX5216::PwrDwn_Reg, MAX5216::PwrDwn1K);
+// dac.write_command(MAX5216::PwrDwn_Reg, MAX5216::PwrDwnNormalOp);
+ dac.write_command(MAX5216::PwrDwn_Reg, MAX5216::PwrDwnHiZ);
+// dac.write_command(MAX5216::PwrDwn_Reg, MAX5216::PwrDwn100K);
+// dac.write_command(MAX5216::PwrDwn_Reg, MAX5216::PwrDwn1K);
wait(2.0);
rLED = LED_OFF;