Program that uses the QuickStart Library to interface a SmartMesh IP mote: Connects to the default network and starts publishing a random walk value every 5 seconds.
Fork of QSL_SimplePublish by
QSL SimplePublish
SmartMesh IP QuickStart Library
- GitHub repository
- Current release used: REL-1.0.2.2
- Documentation
- Discussion
sm_clib/dn_uart.h@1:89766ea2e99d, 2016-09-01 (annotated)
- Committer:
- jhbr
- Date:
- Thu Sep 01 15:00:28 2016 +0000
- Revision:
- 1:89766ea2e99d
- Parent:
- dn_uart.h@0:d3f5fdf2e6da
Moved QSL and C Library files to separate folders
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jhbr | 0:d3f5fdf2e6da | 1 | /* |
jhbr | 0:d3f5fdf2e6da | 2 | Copyright (c) 2014, Dust Networks. All rights reserved. |
jhbr | 0:d3f5fdf2e6da | 3 | |
jhbr | 0:d3f5fdf2e6da | 4 | \license See attached DN_LICENSE.txt. |
jhbr | 0:d3f5fdf2e6da | 5 | */ |
jhbr | 0:d3f5fdf2e6da | 6 | |
jhbr | 0:d3f5fdf2e6da | 7 | #ifndef DN_UART_H |
jhbr | 0:d3f5fdf2e6da | 8 | #define DN_UART_H |
jhbr | 0:d3f5fdf2e6da | 9 | |
jhbr | 0:d3f5fdf2e6da | 10 | #include "dn_common.h" |
jhbr | 0:d3f5fdf2e6da | 11 | |
jhbr | 0:d3f5fdf2e6da | 12 | //=========================== defined ========================================= |
jhbr | 0:d3f5fdf2e6da | 13 | |
jhbr | 0:d3f5fdf2e6da | 14 | //=========================== typedef ========================================= |
jhbr | 0:d3f5fdf2e6da | 15 | |
jhbr | 0:d3f5fdf2e6da | 16 | typedef void (*dn_uart_rxByte_cbt)(uint8_t byte); |
jhbr | 0:d3f5fdf2e6da | 17 | |
jhbr | 0:d3f5fdf2e6da | 18 | //=========================== variables ======================================= |
jhbr | 0:d3f5fdf2e6da | 19 | |
jhbr | 0:d3f5fdf2e6da | 20 | //=========================== prototypes ====================================== |
jhbr | 0:d3f5fdf2e6da | 21 | |
jhbr | 0:d3f5fdf2e6da | 22 | #ifdef __cplusplus |
jhbr | 0:d3f5fdf2e6da | 23 | extern "C" { |
jhbr | 0:d3f5fdf2e6da | 24 | #endif |
jhbr | 0:d3f5fdf2e6da | 25 | |
jhbr | 0:d3f5fdf2e6da | 26 | void dn_uart_init(dn_uart_rxByte_cbt rxByte_cb); |
jhbr | 0:d3f5fdf2e6da | 27 | void dn_uart_txByte(uint8_t byte); |
jhbr | 0:d3f5fdf2e6da | 28 | void dn_uart_txFlush(); |
jhbr | 0:d3f5fdf2e6da | 29 | |
jhbr | 0:d3f5fdf2e6da | 30 | #ifdef __cplusplus |
jhbr | 0:d3f5fdf2e6da | 31 | } |
jhbr | 0:d3f5fdf2e6da | 32 | #endif |
jhbr | 0:d3f5fdf2e6da | 33 | |
jhbr | 0:d3f5fdf2e6da | 34 | #endif |
jhbr | 0:d3f5fdf2e6da | 35 |