Beschreibung
This commit is contained in:
parent
aa5aeff9d1
commit
c09e5b5b48
5 changed files with 94 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/*************************/
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue