Magnificent7 / Hackathon
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers np_app_ncn_interface.h Source File

np_app_ncn_interface.h

00001 /*
00002  * np_app_ncn_interface.h
00003  *
00004  *  Created on: July 14, 2016
00005  *      Author: Alan.Lin
00006  *
00007  *  Copyright: NexPack Ltd.
00008  */
00009 
00010 #ifndef NP_APP_NCN_INTERFACE_H_
00011 #define NP_APP_NCN_INTERFACE_H_
00012 
00013 #include <stdint.h>
00014 #ifdef __cplusplus
00015 extern "C" {
00016 #endif
00017 
00018 typedef enum RESULT_WORD {
00019     SUCCESS = 0x00,
00020     ERROR   = 0x01
00021 }result_Word;
00022 
00023 extern uint8_t mdk_app_version[3] ;
00024 extern uint8_t mdk_mdk_version[3];
00025 extern uint8_t source_address;
00026 extern volatile uint8_t flag_jump_bsl;
00027 extern uint8_t my_node;
00028 
00029 void np_function_ncn_interface_loop(void);
00030 void np_function_set_post_address(uint8_t address);
00031 uint8_t np_function_ncn_interface_get_message(uint8_t *pData);
00032 uint8_t np_function_ncn_interface_post_message(uint16_t command, uint8_t *pData, uint8_t pLen);
00033 uint8_t np_function_ncn_interface_post_message_to_station(uint16_t command, uint8_t *pData, uint8_t pLen);
00034 //extern void np_api_start();
00035 //extern void np_api_stop();
00036 
00037 #ifdef __cplusplus
00038 }
00039 #endif
00040 
00041 #endif /* NP_APP_NCN_INTERFACE_H_ */