Jonathan Jones
/
Radios
Radio Structures in OOP
Diff: modules/CommLink/CommLink.cpp
- Revision:
- 4:989d51f3e6ef
- Parent:
- 3:dc7e9c6bc26c
- Child:
- 5:146523a0d1f4
--- a/modules/CommLink/CommLink.cpp Sat Jan 03 04:35:32 2015 +0000 +++ b/modules/CommLink/CommLink.cpp Sat Jan 03 11:04:31 2015 +0000 @@ -141,15 +141,15 @@ // ================= uint8_t rec_bytes = COMM_LINK_BUFFER_SIZE; RTP_t p; - + //uint8_t *buf_ptr = p.data; inst->getData(p.data, &rec_bytes); - + p.port = p.data[0] & 0xF0; p.subclass = p.data[0] & 0x0F; // [] - 3 - Write the data to the CommModule object's rxQueue - // ================= + // ================= //_comm_module->receive(p); @@ -201,10 +201,7 @@ *_cs = !*_cs; } -/* -void CommLink::module(CommModule& module) +void CommLink::triggerReceive(void) { - _comm_module = &module; - osSignalSet(_rxID, COMM_LINK_SIGNAL_MODULE_LINKED); -} -*/ \ No newline at end of file + CommLink::ISR(); +} \ No newline at end of file