Example implementation of LoraWan specification based on IBM LoraWan in C (ver. 1.5) for Elmo board. Tested only with OTA activation (requires setting AppEui/ DevKey in main.cpp).

Dependencies:   SX1272lib mbed

Committer:
WGorniak
Date:
Wed Oct 07 12:52:36 2015 +0000
Revision:
3:f6bb52cb8d60
Parent:
0:bb3b0e756578
switched from mbed-src to mbed

Who changed what in which revision?

UserRevisionLine numberNew contents of line
WGorniak 0:bb3b0e756578 1 /*******************************************************************************
WGorniak 0:bb3b0e756578 2 * Copyright (c) 2014-2015 IBM Corporation.
WGorniak 0:bb3b0e756578 3 * All rights reserved. This program and the accompanying materials
WGorniak 0:bb3b0e756578 4 * are made available under the terms of the Eclipse Public License v1.0
WGorniak 0:bb3b0e756578 5 * which accompanies this distribution, and is available at
WGorniak 0:bb3b0e756578 6 * http://www.eclipse.org/legal/epl-v10.html
WGorniak 0:bb3b0e756578 7 *
WGorniak 0:bb3b0e756578 8 * Contributors:
WGorniak 0:bb3b0e756578 9 * IBM Zurich Research Lab - initial API, implementation and documentation
WGorniak 0:bb3b0e756578 10 * Semtech Apps Team - Adapted for MBED
WGorniak 0:bb3b0e756578 11 *******************************************************************************/
WGorniak 0:bb3b0e756578 12 #ifndef _debug_hpp_
WGorniak 0:bb3b0e756578 13 #define _debug_hpp_
WGorniak 0:bb3b0e756578 14
WGorniak 0:bb3b0e756578 15 // intialize debug library
WGorniak 0:bb3b0e756578 16 void debug_init (void);
WGorniak 0:bb3b0e756578 17
WGorniak 0:bb3b0e756578 18 // set LED state
WGorniak 0:bb3b0e756578 19 void debug_led (u1_t val);
WGorniak 0:bb3b0e756578 20
WGorniak 0:bb3b0e756578 21 // write character to USART
WGorniak 0:bb3b0e756578 22 void debug_char (u1_t c);
WGorniak 0:bb3b0e756578 23
WGorniak 0:bb3b0e756578 24 // write byte as two hex digits to USART
WGorniak 0:bb3b0e756578 25 void debug_hex (u1_t b);
WGorniak 0:bb3b0e756578 26
WGorniak 0:bb3b0e756578 27 // write buffer as hex dump to USART
WGorniak 0:bb3b0e756578 28 void debug_buf (const u1_t* buf, u2_t len);
WGorniak 0:bb3b0e756578 29
WGorniak 0:bb3b0e756578 30 // write 32-bit integer as eight hex digits to USART
WGorniak 0:bb3b0e756578 31 void debug_uint (u4_t v);
WGorniak 0:bb3b0e756578 32
WGorniak 0:bb3b0e756578 33 // write nul-terminated string to USART
WGorniak 0:bb3b0e756578 34 void debug_str (const u1_t* str);
WGorniak 0:bb3b0e756578 35
WGorniak 0:bb3b0e756578 36 // write LMiC event name to USART
WGorniak 0:bb3b0e756578 37 void debug_event (int ev);
WGorniak 0:bb3b0e756578 38
WGorniak 0:bb3b0e756578 39 // write label and 32-bit value as hex to USART
WGorniak 0:bb3b0e756578 40 void debug_val (const u1_t* label, u4_t val);
WGorniak 0:bb3b0e756578 41
WGorniak 0:bb3b0e756578 42 #endif // _debug_hpp_