C MIP-SDK
|
00001 00002 // 00006 // 00008 // 00009 // External dependencies: 00010 // 00011 // 00012 // 00014 // 00017 // 00027 // 00029 00030 #ifndef _MIP_SDK_USER_FUNCTIONS_H 00031 #define _MIP_SDK_USER_FUNCTIONS_H 00032 00034 // 00035 //Include Files 00036 // 00038 00039 #include "mip.h" 00040 00042 // 00043 // Defines 00044 // 00047 00048 #define MIP_USER_FUNCTION_OK 0 00049 #define MIP_USER_FUNCTION_ERROR 1 00050 00051 #define MIP_COM_PORT_BUFFER_SIZE 0x200 00052 00053 00055 // 00056 // Function Prototypes 00057 // 00059 00060 00061 u16 mip_sdk_port_open(void **port_handle, int port_num, int baudrate); 00062 u16 mip_sdk_port_close(void *port_handle); 00063 00064 u16 mip_sdk_port_write(void *port_handle, u8 *buffer, u32 num_bytes, u32 *bytes_written, u32 timeout_ms); 00065 u16 mip_sdk_port_read(void *port_handle, u8 *buffer, u32 num_bytes, u32 *bytes_read, u32 timeout_ms); 00066 00067 u32 mip_sdk_port_read_count(void *port_handle); 00068 00069 u32 mip_sdk_get_time_ms(); 00070 00071 00072 00073 #endif