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.
Fork of AkmSensor by
Diff: akmirsensor.cpp
- Revision:
- 3:a817a3b3e9ae
- Parent:
- 1:b46b8653331f
- Child:
- 7:e269411568c9
--- a/akmirsensor.cpp Thu May 05 00:19:39 2016 +0000
+++ b/akmirsensor.cpp Fri May 06 17:51:15 2016 +0000
@@ -79,7 +79,7 @@
}
// Gets interrupt status from EEPROM
AK9750::InterruptStatus intStatus;
- if ((ak9750->getInterruptStatusFromEEPROM(&intStatus)) != AK9750::SUCCESS) {
+ if ((ak9750->getInterruptEnableFromEEPROM(&intStatus)) != AK9750::SUCCESS) {
MSG("#Failed to get interrupts of AK9750 from EEPROM.\n");
}
@@ -109,7 +109,7 @@
// Sets interruput status from the red EEPROM values
AK9750::Status status;
- if ((status=ak9750->setInterruptStatus(&intStatus)) != AK9750::SUCCESS) {
+ if ((status=ak9750->setInterruptEnable(&intStatus)) != AK9750::SUCCESS) {
MSG("#Failed to set interrupts of AK9750. Status = 0x%02X\n", status);
}
MSG("#Interrupt:(0x%02X,0x%02X,0x%02X,0x%02X,0x%02X)\n",intStatus.drdy,intStatus.ir13h,intStatus.ir13l,intStatus.ir24h,intStatus.ir24l);
@@ -260,7 +260,7 @@
}
case Message::CMD_IR_GET_INTERRUPT:
{
- if (ak9750->getInterruptStatus(&interrupt) != AK9750::SUCCESS) {
+ if (ak9750->getInterruptEnable(&interrupt) != AK9750::SUCCESS) {
status = AkmSensor::ERROR;
MSG("#Failed to set hysteresis to AK9750.\n");
}
@@ -278,7 +278,7 @@
interrupt.ir13l = in->getArgument(2);
interrupt.ir24h = in->getArgument(3);
interrupt.ir24l = in->getArgument(4);
- if (ak9750->setInterruptStatus(&interrupt) != AK9750::SUCCESS) {
+ if (ak9750->setInterruptEnable(&interrupt) != AK9750::SUCCESS) {
status = AkmSensor::ERROR;
MSG("#Failed to set hysteresis to AK9750.\n");
}
@@ -360,7 +360,7 @@
}
case Message::CMD_IR_GET_INTERRUPT_EEPROM:
{
- if (ak9750->getInterruptStatusFromEEPROM(&interrupt) != AK9750::SUCCESS) {
+ if (ak9750->getInterruptEnableFromEEPROM(&interrupt) != AK9750::SUCCESS) {
status = AkmSensor::ERROR;
MSG("#Failed to set interrupt to AK9750(EEPROM).\n");
}
@@ -378,7 +378,7 @@
interrupt.ir13l = in->getArgument(2);
interrupt.ir24h = in->getArgument(3);
interrupt.ir24l = in->getArgument(4);
- if (ak9750->setInterruptStatusToEEPROM(&interrupt) != AK9750::SUCCESS) {
+ if (ak9750->setInterruptEnableToEEPROM(&interrupt) != AK9750::SUCCESS) {
status = AkmSensor::ERROR;
MSG("#Failed to set interrupt to AK9750(EEPROM).\n");
}

