Merge commit '6099d07650acb28df1a5c9659479351daa7c2d27'
This commit is contained in:
@@ -1172,17 +1172,26 @@ bool epi_CurrentPaymentGetAllCoins(uint16_t *types, uint16_t *values) {
|
||||
|
||||
void gpi_storeWakeSources(uint8_t const *receivedData) {
|
||||
SharedMemBuffer::getData()->store.wakeSrc = 0;
|
||||
for (int nn=7; nn>=0; nn--) {
|
||||
for (int nn=5; nn>=0; nn--) {
|
||||
uint8_t const uctmp = receivedData[nn];
|
||||
SharedMemBuffer::getData()->store.wakeSrc |= uctmp;
|
||||
SharedMemBuffer::getData()->store.wakeSrc <<= 8;
|
||||
}
|
||||
SharedMemBuffer::getData()->store.wakeReason = receivedData[6];
|
||||
|
||||
}
|
||||
|
||||
uint64_t epi_getWakeSources(void) {
|
||||
return SharedMemBuffer::getDataConst()->store.wakeSrc;
|
||||
}
|
||||
|
||||
uint8_t epi_getWakeReason(void)
|
||||
{
|
||||
return SharedMemBuffer::getDataConst()->store.wakeReason;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void gpi_storeExtendedTime(uint8_t leng, uint8_t const *data) {
|
||||
leng = std::min(leng, (uint8_t)(64));
|
||||
SharedMemBuffer::getData()->store.rbDevParamLen = leng;
|
||||
@@ -1303,3 +1312,25 @@ uint32_t epi_getCashBoxContent(void) {
|
||||
uint16_t epi_getNrOfCoinsInCashBox(void) {
|
||||
return SharedMemBuffer::getDataConst()->store.nrOfCoins;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void gpi_storeDcDataValid(bool isVal)
|
||||
{
|
||||
SharedMemBuffer::getData()->store.dcDataValid = isVal;
|
||||
}
|
||||
|
||||
|
||||
bool gpi_areDcDataValid()
|
||||
{
|
||||
return SharedMemBuffer::getDataConst()->store.dcDataValid;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user