C MIP-SDK
Defines | Functions
mip_sdk_system.h File Reference
#include "mip.h"
#include "mip_sdk_interface.h"

Go to the source code of this file.

Defines

#define MIP_SYSTEM_COMMAND_SET   0x7F
#define MIP_SYSTEM_CMD_COM_MODE   0x10
#define MIP_SYSTEM_REPLY_COM_MODE   0x90

Functions

u16 mip_system_com_mode (mip_interface *device_interface, u8 function_selector, u8 *com_mode)

Detailed Description

Author:
Nathan Miller
Version:
1.1

Function Documentation

u16 mip_system_com_mode ( mip_interface device_interface,
u8  function_selector,
u8 *  com_mode 
)

DESCRIPTION

Set or read the communications mode.

DETAILS

Parameters:
[in]mip_interface*device_interface - The device interface.
[in]u8function_selector - Selects which function to perform.
[in,out]u8*com_mode - The communications mode. (used to set or get depending on function_selector)
Return values:
MIP_INTERFACE_ERRORWhen there is a problem with the command format or the
the device communications failed.
MIP_INTERFACE_OKThe command was successful.

NOTES


Possible function_selector values:

  • 0x01 - Use New Settings
  • 0x02 - Read Current Settings
  • 0x03 - Save Current Settings as Startup Settings
  • 0x04 - Load Saved Settings
  • 0x05 - Load Factory Default Settings

com_mode may be NULL for the following function_selector values:

  • 0x03 - Save Current Settings as Startup Settings
  • 0x04 - Load Saved Settings
  • 0x05 - Load Factory Default Settings


Possible com_mode values:

  • 0x01 - Standard Mode
  • 0x02 - AHRS Direct (or Device 1)
  • 0x03 - GPS Direct (or Device 2)

Please check the device DCP for available communications modes

 All Data Structures Files Functions Defines