|
|
@ -141,10 +141,10 @@ bool TMC5130::isReachTarget() { |
|
|
|
/*******************************************************************************
|
|
|
|
* basic * |
|
|
|
*******************************************************************************/ |
|
|
|
void TMC5130::writeSubRegister(uint8_t address, uint32_t mask, uint32_t shift, uint32_t value) { |
|
|
|
CriticalContext cc; |
|
|
|
writeInt(address, readInt(address) & ~mask | value << shift); |
|
|
|
} |
|
|
|
// void TMC5130::writeSubRegister(uint8_t address, uint32_t mask, uint32_t shift, uint32_t value) {
|
|
|
|
// CriticalContext cc;
|
|
|
|
// writeInt(address, readInt(address) & ~mask | value << shift);
|
|
|
|
// }
|
|
|
|
void TMC5130::readWriteArray(uint8_t *data, size_t length) { |
|
|
|
CriticalContext cc; |
|
|
|
// m_port->TMC5130Port_readWriteArray(m_channel, data, length);
|
|
|
|