Extended with bna-functionality.

This commit is contained in:
Thomas Sax 2023-11-14 08:47:37 +01:00
parent 7c4fcab33c
commit ca067b0246

View File

@ -1984,7 +1984,7 @@ void epi_iniVRstorage(void)
void gpi_storeVaultRecord(uint8_t blkNr, uint8_t *data )
{
uint16_t start=blkNr, ii;
qDebug()<<"storing vault data "<<blkNr;
//qDebug()<<"storing vault data "<<blkNr;
SharedMem::write()->store_gotNrBlocksOfVaultRec |= (1<<start); // setze pro Block ein bit, wir brauchen block 0...5
// also muss store_gotNrBlocksOfVaultRec auf 0x1F stehen
start<<=6; // *64
@ -2332,7 +2332,67 @@ void epi_restoreTubeLevel(uint8_t *data)
void gpi_storeBnaParams(uint8_t *data)
{
int nn;
for (nn=0; nn<64; nn++)
{
SharedMem::write()->store_bnaParameter[nn]=data[nn];
}
}
void epi_restoreBnaParams(uint8_t *data)
{
int nn;
for (nn=0; nn<64; nn++)
{
data[nn]=SharedMem::read()->store_bnaParameter[nn];
}
}
void gpi_storeBnaCollection(uint8_t *data)
{
int nn;
for (nn=0; nn<8; nn++)
{
SharedMem::write()->store_bnaCollect[nn]=data[nn];
}
}
void epi_restoreBnaCollection(uint8_t *data)
{
int nn;
for (nn=0; nn<8; nn++)
{
data[nn]=SharedMem::read()->store_bnaCollect[nn];
}
}
void gpi_storeBnaContent(uint8_t *data)
{
int nn;
for (nn=0; nn<64; nn++)
{
SharedMem::write()->store_bnaContent[nn]=data[nn];
}
}
void epi_restoreBnaContent(uint8_t *data)
{
int nn;
for (nn=0; nn<64; nn++)
{
data[nn]=SharedMem::read()->store_bnaContent[nn];
}
}