COM Detect Module

This module offers the functionality to detect which SOMANET COM Board is mounted in our SOMANET node.

Important

This module is experimental. Currently it is not required by any SOMANET Library and is meant for internal use only.

API

Types

com_module_type_t

Type for COM boards enumeration.

There are 12 possible communication (COM) modules that can be identified. The configuration is done in hardware and read via a dedicated COM-detect port

Enum Values:

COM_DETECT_IS_NONE
COM_DETECT_IS_RESERVED0
COM_DETECT_IS_ETHERCAT
COM_DETECT_IS_RESERVED2
COM_DETECT_IS_RESERVED3
COM_DETECT_IS_RESERVED4
COM_DETECT_IS_RESERVED5
COM_DETECT_IS_RESERVED6
COM_DETECT_IS_RESERVED7
COM_DETECT_IS_RESERVED8
COM_DETECT_IS_RESERVED9
COM_DETECT_IS_RESERVED10
COM_DETECT_IS_RESERVED11
COM_DETECT_IS_UNKNOWN

Functions

com_module_type_t com_detect(port p)

COM module detection method.

Parameters:
  • p – COM-detect port
Returns:

com_module_type_t - detected board enumeration