Beschreibung

This commit is contained in:
Tristan Krause 2019-06-25 11:02:08 +02:00
parent aa5aeff9d1
commit c09e5b5b48
5 changed files with 94 additions and 6 deletions

View file

@ -508,6 +508,22 @@ uint8_t B15F::getRegister(volatile uint8_t* adr)
return getMem8(adr);
}
uint16_t* B15F::getInterruptCounterOffset()
{
usart.clearInputBuffer();
uint8_t rq[] =
{
RQ_COUNTER_OFFSET
};
usart.transmit(&rq[0], 0, sizeof(rq));
uint16_t aw;
usart.receive(reinterpret_cast<uint8_t *>(&aw), 0, sizeof(aw));
return reinterpret_cast<uint16_t*>(aw);
}
/*************************/