Adapted to LoRa Semtech + Nucleo
Dependencies: LMiC SX1276Lib cantcoap lwip mbed-rtos mbed
Fork of LoRaWAN-lmic-app by
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 00012 // intialize debug library 00013 void debug_init (void); 00014 00015 // set LED state 00016 void debug_led (u1_t val); 00017 00018 // write character to USART 00019 void debug_char (u1_t c); 00020 00021 // write byte as two hex digits to USART 00022 void debug_hex (u1_t b); 00023 00024 // write buffer as hex dump to USART 00025 void debug_buf (const u1_t* buf, u2_t len); 00026 00027 // write 32-bit integer as eight hex digits to USART 00028 void debug_uint (u4_t v); 00029 00030 // write nul-terminated string to USART 00031 void debug_str (const char* str); 00032 void debug_str (const u1_t* str); 00033 00034 // write LMiC event name to USART 00035 void debug_event (int ev); 00036 00037 // write label and 32-bit value as hex to USART 00038 void debug_val (const char* label, u4_t val); 00039 void debug_val (const u1_t* label, u4_t val);
Generated on Sun Jul 17 2022 22:01:57 by 1.7.2