Lora Personalized device for Everynet

Dependencies:   LMiCPersonalizedforEverynet SX1276Lib X_NUCLEO_IKS01A1 cantcoap lwip mbed-rtos mbed

Fork of LoRaWAN-test-10secs by Alcatel-Lucent IoT Development

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers debug.h Source File

debug.h

00001 /*******************************************************************************
00002  * Copyright (c) 2014-2015 IBM Corporation.
00003  * All rights reserved. This program and the accompanying materials
00004  * are made available under the terms of the Eclipse Public License v1.0
00005  * which accompanies this distribution, and is available at
00006  * http://www.eclipse.org/legal/epl-v10.html
00007  *
00008  * Contributors:
00009  *    IBM Zurich Research Lab - initial API, implementation and documentation
00010  *******************************************************************************/
00011 #include "mbed.h"
00012 
00013 // intialize debug library
00014 void debug_init (void);
00015 
00016 // set LED state
00017 void debug_led (u1_t val);
00018 
00019 // write character to USART
00020 void debug_char (u1_t c);
00021 
00022 // write byte as two hex digits to USART
00023 void debug_hex (u1_t b);
00024 
00025 // write buffer as hex dump to USART
00026 void debug_buf (const u1_t* buf, u2_t len);
00027 
00028 // write 32-bit integer as eight hex digits to USART
00029 void debug_uint (u4_t v);
00030 
00031 // write nul-terminated string to USART
00032 void debug_str (const char* str);
00033 void debug_str (const u1_t* str);
00034 
00035 // write LMiC event name to USART
00036 void debug_event (int ev);
00037 
00038 // write label and 32-bit value as hex to USART
00039 void debug_val (const char* label, u4_t val);
00040 void debug_val (const u1_t* label, u4_t val);