PIR + LoRa

Dependencies:   BLE_API LMiC SX1276Lib mbed nRF51822 nrf51_rtc

Fork of BLE_PhysicalWeb by Bluetooth Low Energy

Committer:
janjongboom
Date:
Thu Sep 24 08:32:32 2015 +0000
Revision:
12:940eb88a2104
Parent:
11:bbe4157401e2
Initial commit

Who changed what in which revision?

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