Gets connection states.
This function used to get connection states for Discrete IO Device connection.