12 #ifndef _MIP_SDK_USER_FUNCTIONS_H 13 #define _MIP_SDK_USER_FUNCTIONS_H 18 #include <sys/ioctl.h> 32 typedef unsigned char Byte;
34 #define MIP_USER_FUNCTION_OK 0 35 #define MIP_USER_FUNCTION_ERROR 1 37 #define MIP_COM_PORT_BUFFER_SIZE 0x200 47 u16
mip_sdk_port_write(
void *port_handle, u8 *buffer, u32 num_bytes, u32 *bytes_written, u32 timeout_ms);
49 u16
mip_sdk_port_read(
void *port_handle, u8 *buffer, u32 num_bytes, u32 *bytes_read, u32 timeout_ms);
u16 mip_sdk_port_read(void *port_handle, u8 *buffer, u32 num_bytes, u32 *bytes_read, u32 timeout_ms)
u16 mip_sdk_port_open(void **port_handle, const char *portstr, int baudrate)
u16 mip_sdk_port_close(void *port_handle)
u32 mip_sdk_get_time_ms()
u16 mip_sdk_port_write(void *port_handle, u8 *buffer, u32 num_bytes, u32 *bytes_written, u32 timeout_ms)
u32 mip_sdk_port_read_count(void *port_handle)
u16 purge(ComPortHandle comPortHandle)