small renaming
This commit is contained in:
parent
b3416cc06c
commit
83e3e0ecf8
@ -98,7 +98,7 @@ ReturnValue_t MGMHandlerLIS3MDL::setupMGM() {
|
|||||||
registers[3] = (1 << MGMLIS3MDL::OMZ1);
|
registers[3] = (1 << MGMLIS3MDL::OMZ1);
|
||||||
registers[4] = 0;
|
registers[4] = 0;
|
||||||
|
|
||||||
return prepareRegisterWrite();
|
return prepareCtrlRegisterWrite();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ ReturnValue_t MGMHandlerLIS3MDL::buildCommandFromCommand(
|
|||||||
|
|
||||||
rawPacket = commandBuffer;
|
rawPacket = commandBuffer;
|
||||||
rawPacketLen = sizeof(commandBuffer);
|
rawPacketLen = sizeof(commandBuffer);
|
||||||
return RETURN_OK;
|
return HasReturnvaluesIF::RETURN_OK;
|
||||||
case(MGMLIS3MDL::IDENTIFY_DEVICE): {
|
case(MGMLIS3MDL::IDENTIFY_DEVICE): {
|
||||||
return identifyDevice();
|
return identifyDevice();
|
||||||
}
|
}
|
||||||
@ -319,7 +319,7 @@ ReturnValue_t MGMHandlerLIS3MDL::setOperatingMode(const uint8_t *commandData,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return prepareRegisterWrite();
|
return prepareCtrlRegisterWrite();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MGMHandlerLIS3MDL::fillCommandAndReplyMap() {
|
void MGMHandlerLIS3MDL::fillCommandAndReplyMap() {
|
||||||
@ -340,7 +340,7 @@ void MGMHandlerLIS3MDL::fillCommandAndReplyMap() {
|
|||||||
insertInCommandAndReplyMap(MGMLIS3MDL::ACCURACY_OP_MODE_SET, 1);
|
insertInCommandAndReplyMap(MGMLIS3MDL::ACCURACY_OP_MODE_SET, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
ReturnValue_t MGMHandlerLIS3MDL::prepareRegisterWrite() {
|
ReturnValue_t MGMHandlerLIS3MDL::prepareCtrlRegisterWrite() {
|
||||||
|
|
||||||
commandBuffer[0] = writeCommand(MGMLIS3MDL::CTRL_REG1, true);
|
commandBuffer[0] = writeCommand(MGMLIS3MDL::CTRL_REG1, true);
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ private:
|
|||||||
* saved register
|
* saved register
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
ReturnValue_t prepareRegisterWrite();
|
ReturnValue_t prepareCtrlRegisterWrite();
|
||||||
|
|
||||||
enum InternalState {
|
enum InternalState {
|
||||||
STATE_NONE, STATE_FIRST_CONTACT, STATE_SETUP, STATE_CHECK_REGISTERS
|
STATE_NONE, STATE_FIRST_CONTACT, STATE_SETUP, STATE_CHECK_REGISTERS
|
||||||
|
Loading…
Reference in New Issue
Block a user