Software Library API naibrd 1.62
See all documentation at naii.docs.com
Counter Operation Functions

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_DIF_CTS_SetSubsecCounter (int32_t cardIndex, int32_t module, uint32_t subsecCount)
 Sets the SubSecond Counter for the specified DIF CTS module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DIF_CTS_GetSubsecCounter (int32_t cardIndex, int32_t module, uint32_t *outsubsecCount)
 Gets the SubSecond Counter for the specified DIF CTS module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DIF_CTS_SetCourseCounter (int32_t cardIndex, int32_t module, uint32_t courseCount)
 Sets the Course Counter for the specified DIF CTS module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DIF_CTS_GetCourseCounter (int32_t cardIndex, int32_t module, uint32_t *outcourseCount)
 Gets the Course Counter for the specified DIF CTS module.
 

Detailed Description


Function Documentation

◆ naibrd_DIF_CTS_GetCourseCounter()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DIF_CTS_GetCourseCounter ( int32_t cardIndex,
int32_t module,
uint32_t * outcourseCount )

Gets the Course Counter for the specified DIF CTS module.

Parameters
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]).
outcourseCount: (Output) Value of Course Count.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid card parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DIF_CTS_GetSubsecCounter()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DIF_CTS_GetSubsecCounter ( int32_t cardIndex,
int32_t module,
uint32_t * outsubsecCount )

Gets the SubSecond Counter for the specified DIF CTS module.

Parameters
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]).
outsubsecCount: (Output) Value of SubSecond Count.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid card parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DIF_CTS_SetCourseCounter()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DIF_CTS_SetCourseCounter ( int32_t cardIndex,
int32_t module,
uint32_t courseCount )

Sets the Course Counter for the specified DIF CTS module.

Parameters
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]).
courseCount: (Input) Value of Course Count to set.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid card parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DIF_CTS_SetSubsecCounter()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DIF_CTS_SetSubsecCounter ( int32_t cardIndex,
int32_t module,
uint32_t subsecCount )

Sets the SubSecond Counter for the specified DIF CTS module.

Parameters
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]).
subsecCount: (Input) Value of SubSecond Count to set.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid card parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.