MIP_SDK
latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
|
Classes | |
struct | CommMode |
struct | CommsProtocol |
struct | InterfaceControl |
Enumerations | |
enum | { DESCRIPTOR_SET = 0x7F, CMD_ENUMERATE = 0x01, CMD_INTERFACE_CONTROL = 0x02, CMD_COM_MODE = 0x10, CMD_HARDWARE_CONTROL = 0x11, CMD_HARDWARE_CONTROL_2 = 0x12, REPLY_COM_MODE = 0x90, REPLY_HARDWARE_CONTROL = 0x91, REPLY_HARDWARE_CONTROL_2 = 0x92, REPLY_INTERFACE_CONTROL = 0x82 } |
enum | CommsInterface : uint8_t { CommsInterface::ALL = 0, CommsInterface::MAIN = 1, CommsInterface::UART_1 = 17, CommsInterface::UART_2 = 18, CommsInterface::UART_3 = 19, CommsInterface::USB_1 = 33, CommsInterface::USB_2 = 34 } |
Functions | |
TypedResult< CommMode > | writeCommMode (C::mip_interface &device, uint8_t mode) |
TypedResult< CommMode > | readCommMode (C::mip_interface &device, uint8_t *modeOut) |
TypedResult< CommMode > | defaultCommMode (C::mip_interface &device) |
TypedResult< InterfaceControl > | writeInterfaceControl (C::mip_interface &device, CommsInterface port, CommsProtocol protocolsIncoming, CommsProtocol protocolsOutgoing) |
TypedResult< InterfaceControl > | readInterfaceControl (C::mip_interface &device, CommsInterface port, CommsProtocol *protocolsIncomingOut, CommsProtocol *protocolsOutgoingOut) |
TypedResult< InterfaceControl > | saveInterfaceControl (C::mip_interface &device, CommsInterface port) |
TypedResult< InterfaceControl > | loadInterfaceControl (C::mip_interface &device, CommsInterface port) |
TypedResult< InterfaceControl > | defaultInterfaceControl (C::mip_interface &device, CommsInterface port) |