• Main Page
  • Related Pages
  • Modules
  • SeaMAX API
SM_Close
SM_ConfigureSerialConnection
SM_ConfigureSerialTimeouts
SM_CustomMessage
SM_GetAnalogConfig
SM_GetAnalogInputConfig
SM_GetAnalogInputRanges
SM_GetAnalogOutputRanges
SM_GetDeviceConfig
SM_GetFirmwareVersion
SM_GetLastError
SM_GetLastFTDIError
SM_GetLastWin32Error
SM_GetPIODirection
SM_GetPIOPresets
SM_GlobalCommsReset
SM_NotifyInputState
SM_NotifyOnInputChange
SM_Open
SM_OpenSecure
SM_ReadAnalogInputs
SM_ReadAnalogOutputs
SM_ReadDigitalInputs
SM_ReadDigitalOutputs
SM_ReadPIO
SM_SelectDevice
SM_SetAnalogConfig
SM_SetAnalogInputConfig
SM_SetAnalogInputRanges
SM_SetCommunications
SM_SetPIODirection
SM_SetPIOPresets
SM_SetPolarity
SM_SetSoftwareAddress
SM_Version
SM_WriteAnalogOutputs
SM_WriteDigitalOutputs
SM_WritePIO
int __stdcall SM_GetLastError ( )

Returns the most recent SeaMAX Error and clears the error code.

Return values
ErrorCodevalue

When an error occurs, an internal error value is set. Calling this method will return the stored error and reset the stored value. Calling SM_GetLastError() after an error has occurred is not required.

See also
Error Code