<< >>

Media Clock Control

device_media_clock_type_t

Enum Values:

DEVICE_MEDIA_CLOCK_TYPE_PTP
DEVICE_MEDIA_CLOCK_TYPE_STREAM
int get_device_media_clock_type(int clock_num, device_media_clock_type_t &clock_type)

Get the type of a media clock.

Parameters:
  • clock_num – the number of the media clock
  • clock_type – the type of the clock
int set_device_media_clock_type(int clock_num, device_media_clock_type_t clock_type)

Set the type of a media clock.

Parameters:
  • clock_num – the number of the media clock
  • clock_type – the type of the clock
int get_device_media_clock_rate(int clock_num, int &rate)

Get the rate of a media clock.

Parameters:
  • clock_num – the number of the media clock
  • rate – the rate of the clock in Hz
int set_device_media_clock_rate(int clock_num, int rate)

Set the rate of a media clock.

Sets the rate of the media clock.

Parameters:
  • clock_num – the number of the media clock
  • rate – the rate of the clock in Hz
int get_device_media_clock_source(unsigned clock_num, device_media_clock_state_t &source)

Get the source of a media clock.

Parameters:
  • clock_num – the number of the media clock
  • source – the output FIFO number to base the clock on
int set_device_media_clock_source(unsigned clock_num, device_media_clock_state_t source)

Set the source of a media clock.

For clocks that are derived from an output FIFO. This function gets/sets which FIFO the clock should be derived from.

Parameters:
  • clock_num – the number of the media clock
  • source – the output FIFO number to base the clock on
device_media_clock_state_t

Enum Values:

DEVICE_MEDIA_CLOCK_STATE_DISABLED
DEVICE_MEDIA_CLOCK_STATE_ENABLED
int get_device_media_clock_state(int clock_num, device_media_clock_state_t &state)

Get the state of a media clock.

Parameters:
  • clock_num – the number of the media clock
  • state – the state of the clock
int set_device_media_clock_state(int clock_num, device_media_clock_state_t state)

Set the state of a media clock.

This function can be used to enabled/disable a media clock.

Parameters:
  • clock_num – the number of the media clock
  • state – the state of the clock