void epi_clearDynMachineConditions(void)
void gpi_storeDynMachineConditions(void const *data) void epi_restoreDynMachineConditions(void *data) use T_dynamicConditions directly.
This commit is contained in:
parent
81cba7e615
commit
dda9e4ad8f
@ -6,6 +6,8 @@
|
|||||||
#include "shared_mem_buffer.h"
|
#include "shared_mem_buffer.h"
|
||||||
#include "datei.h"
|
#include "datei.h"
|
||||||
|
|
||||||
|
#include "interfaces.h" // #include "dynamic-machine-conditions.h"
|
||||||
|
|
||||||
// gpi: grafical access to PI: access from external devices over device controller FOR GUI
|
// gpi: grafical access to PI: access from external devices over device controller FOR GUI
|
||||||
// epi: external access from GUI to PI: FOR external devices (DC)
|
// epi: external access from GUI to PI: FOR external devices (DC)
|
||||||
|
|
||||||
@ -1932,32 +1934,17 @@ void epi_restoreDeviceConditions(uint8_t *leng, uint8_t *data)
|
|||||||
|
|
||||||
void epi_clearDynMachineConditions(void)
|
void epi_clearDynMachineConditions(void)
|
||||||
{
|
{
|
||||||
uint8_t nn;
|
memset(&SharedMem::write()->dynMachCond, 0, sizeof(struct T_dynamicCondition));
|
||||||
SharedMem::write()->store_machCondLen=0;
|
|
||||||
for (nn=0; nn<64; nn++)
|
|
||||||
SharedMem::write()->store_machCond[nn] = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void gpi_storeDynMachineConditions(void const *data)
|
||||||
void gpi_storeDynMachineConditions(uint8_t leng, uint8_t *data)
|
|
||||||
{
|
{
|
||||||
uint8_t nn;
|
SharedMem::write()->dynMachCond = *(struct T_dynamicCondition const *)(data);
|
||||||
if (leng>64) leng=64;
|
}
|
||||||
SharedMem::write()->store_machCondLen=leng;
|
|
||||||
// tslib_strcpy(data, SharedMem::write()->store_machCond, leng);
|
|
||||||
for (nn=0; nn<leng; nn++)
|
|
||||||
SharedMem::write()->store_machCond[nn] = data[nn];
|
|
||||||
|
|
||||||
}
|
void epi_restoreDynMachineConditions(void *data)
|
||||||
|
|
||||||
void epi_restoreDynMachineConditions(uint8_t *leng, uint8_t *data)
|
|
||||||
{
|
{
|
||||||
uint8_t nn, LL;
|
*(struct T_dynamicCondition *)(data) = SharedMem::read()->dynMachCond;
|
||||||
LL=SharedMem::read()->store_machCondLen;
|
|
||||||
*leng=LL;
|
|
||||||
//tslib_strcpy(SharedMem::read()->store_machCond, data, SharedMem::read()->store_machCondLen);
|
|
||||||
for (nn=0; nn<LL; nn++)
|
|
||||||
data[nn] = SharedMem::read()->store_machCond[nn];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user