Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
|
Functions | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_IRIG_GetMasterTime (int32_t cardIndex, int32_t module, int32_t channel, naibrd_irig_master_timer_info_t *p_outIrigInfoStruct) |
Gets the date and time from the master timer. The master time is derived from either IRIG, onboard real-time clock (RTC) reference source or free running timer when IRIG signal is not locked/presented. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_IRIG_GetActualIRIGDateAndTime (int32_t cardIndex, int32_t module, int32_t channel, naibrd_irig_master_timer_info_t *p_outIrigInfoStruct, uint32_t *p_outErroredFrameCount) |
Gets the actual IRIG message date and time from the IRIG input. The readings are valid only if IRIG messages are being received. Also gets the number of IRIG frame errors detected by the module. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_IRIG_ClearErroredFrameCount (int32_t cardIndex, int32_t module, int32_t channel) |
Clear the errored frame count. The errored frame count will be incremented when the received IRIG signal does not match the expected format. This function clears the secondary output p_outErroredFrameCount of naibrd_IRIG_GetActualIRIGDateAndTime. | |
NAIBRDFUNC nai_status_t NAIAPI naibrd_IRIG_ClearErroredFrameCount | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel ) |
Clear the errored frame count. The errored frame count will be incremented when the received IRIG signal does not match the expected format. This function clears the secondary output p_outErroredFrameCount of naibrd_IRIG_GetActualIRIGDateAndTime.
cardIndex | : (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
NAIBRDFUNC nai_status_t NAIAPI naibrd_IRIG_GetActualIRIGDateAndTime | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
naibrd_irig_master_timer_info_t * | p_outIrigInfoStruct, | ||
uint32_t * | p_outErroredFrameCount ) |
Gets the actual IRIG message date and time from the IRIG input. The readings are valid only if IRIG messages are being received. Also gets the number of IRIG frame errors detected by the module.
cardIndex | : (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
p_outIrigInfoStruct | : (Output) Pointer to a naibrd_irig_master_timer_info_t struct that will contain the following member variables: year Two-digit year day Day of year hour Hour (0-23) minute Minute second Second microSecond Microsecond secondsSinceMidnight Seconds elapsed since 00:00:00 |
p_outErroredFrameCount | : (Output) Count of errored receive frames, based on reference pulse positions. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_IRIG_GetMasterTime | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
naibrd_irig_master_timer_info_t * | p_outIrigInfoStruct ) |
Gets the date and time from the master timer. The master time is derived from either IRIG, onboard real-time clock (RTC) reference source or free running timer when IRIG signal is not locked/presented.
cardIndex | : (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
p_outIrigInfoStruct | : (Output) Pointer to a naibrd_irig_master_timer_info_t struct that will contain the following member variables: year Two-digit year day Day of year hour Hour (0-23) minute Minute second Second microSecond Microsecond secondsSinceMidnight Seconds elapsed since 00:00:00 |