MBED_DEMOS / nsp_resources

Dependencies:   nsdl_lib

Dependents:   mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet mbed_nsp_endpoint_nxp

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers battery.h Source File

battery.h

00001 // Battery resource implementation
00002 
00003 #ifndef BATTERY_H
00004 #define BATTERY_H
00005 
00006 #include "nsp_get.h"
00007 
00008 // initialize MBED Battery Emulator
00009 void init_battery(Resource *resource);
00010 
00011 // MBED supports Battery Emulation 
00012 extern uint8_t battery_cb(sn_coap_hdr_s *received_coap_ptr, sn_nsdl_addr_s *address, sn_proto_info_s *proto);
00013 
00014 #endif