Raghav Ganesh
/
AvnetATT_shape_hackathon
This program simply connects to a HTS221 I2C device to read Temperature
Embed:
(wiki syntax)
Show/hide line numbers
wnc_control.h
00001 00002 #ifndef __WNC_CONTROL_H_ 00003 #define __WNC_CONTROL_H_ 00004 00005 static const unsigned WNC_TIMEOUT_MS = 5000; 00006 00007 // Core function that sends data to the WNC UART 00008 extern int send_wnc_cmd(const char * s, string ** r, int ms_timeout); 00009 00010 // Low level command functions 00011 extern void at_init_wnc(void); 00012 extern void at_sockopen_wnc(const string & ipStr, const char * port ); 00013 extern void at_sockclose_wnc(void); 00014 extern int at_dnsresolve_wnc(const char * s, string * ipStr); 00015 extern void at_sockwrite_wnc(const char * s); 00016 extern unsigned at_sockread_wnc(string * pS, unsigned n, unsigned retries); 00017 extern void at_at_wnc(void); 00018 00019 // High level functions that attempt to correct for things going bad with the WNC 00020 extern void software_init_mdm(void); 00021 extern void resolve_mdm(void); 00022 extern void sockopen_mdm(void); 00023 extern void sockwrite_mdm(const char * s); 00024 extern void sockread_mdm(string * sockData, int len, int retries); 00025 extern void sockclose_mdm(void); 00026 00027 #endif 00028 00029
Generated on Mon Jul 18 2022 21:05:05 by 1.7.2