Prosody data communications Protocols: cpumon

This is a receive-only protocol which reads the CPU usage data from a Prosody processor. It has no configuration options.

API function behaviour

This should be read in conjunction with the generic data communications documentation.

smdc_channel_config()

You must use #include "smdc_cpu.h" to get the appropriate declarations.

The protocol value is kSMDCProtocolCpu.

There is no configuration for this protocol, so the config_data pointer should be null (0) and the config_length should be zero.

This protocol does not use encodings, so the 'encoding' field must be set to the value kSMDCConfigEncodingNone.

The firmware module cpumon must have been downloaded.

smdc_line_control()

[note] not useful - receiver is always connected.

smdc_line_status()

smdc_tx_status()

This function is not applicable since it only applies to the output half of a channel.

smdc_tx_control()

This function is not applicable since it only applies to the output half of a channel.

smdc_rx_status()

Overrun is not monitored.

smdc_rx_control()

smdc_rx_data()

The received data consists of 32-bit words, least significant byte first, each of which is one CPU usage measurement.

smdc_tx_data()

This function is not applicable since it only applies to the output half of a channel.