Skip to content

Commit

Permalink
Add support for mux that needs an index number
Browse files Browse the repository at this point in the history
  • Loading branch information
MCUdude committed Mar 15, 2024
1 parent 2f0f0f0 commit 176c023
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/SigmaDSP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ uint8_t SigmaDSP::ping()
*/
void SigmaDSP::mux(uint16_t startMemoryAddress, uint8_t index, uint8_t numberOfIndexes)
{
// Index number is actually not needed, but kept for compatibility with demux
(void)numberOfIndexes;

safeload_write(startMemoryAddress, index);
if(numberOfIndexes == 0)
safeload_write(startMemoryAddress, index);
else
demux(startMemoryAddress, index, numberOfIndexes);
}


Expand Down Expand Up @@ -1193,6 +1193,8 @@ void SigmaDSP::writeRegisterBlock(uint16_t memoryAddress, uint16_t length, const

/**
* @brief Reads a DSP memory block
* SigmaStudio path:
* Basic DSP > DSP Functions > DSP Readback
*
* @param memoryAddress DSP memory address
* @param readout Which register to read
Expand Down

0 comments on commit 176c023

Please sign in to comment.