Software Library API naibrd 1.62
See all documentation at naii.docs.com
|
#include <stdlib.h>
#include "functions/naibrd_dif_cts.h"
#include "maps/nai_map_dif.h"
#include "maps/nai_map_dif_cts.h"
#include "advanced/naibrd_adv.h"
#include "naibrd_config.h"
#include "boards/naibrd_gen5.h"
#include <math.h>
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. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_DIF_CTS_FlushQueues (int32_t cardIndex, int32_t module) |
Flushes the Queue for the specified DIF CTS module. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_DIF_CTS_WriteEvent (int32_t cardIndex, int32_t module, uint32_t course, uint32_t fine, uint32_t data) |
Writes an event to the specified DIF CTS module. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_DIF_CTS_SetInterruptEnable (int32_t cardIndex, int32_t module, nai_dif_cts_int_t type, bool_t enable) |
Sets Bit for CTS interrupt type for in specified DIF CTS module. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_DIF_CTS_GetInterruptEnable (int32_t cardIndex, int32_t module, nai_dif_cts_int_t type, bool_t *outenable) |
Gets Bit for Interrupt type for in specified DIF CTS module. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_DIF_CTS_ClearInterruptStatus (int32_t cardIndex, int32_t module, nai_dif_cts_int_t type) |
Clears Interrupt status for CTS Interrupt type in specified DIF CTS module. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_DIF_CTS_GetInterruptStatus (int32_t cardIndex, int32_t module, nai_dif_cts_int_t type, nai_dif_cts_timing_t timing, nai_status_bit_t *outstatusVal) |
Gets Interrupt status for CTS Interrupt type in specified DIF CTS module. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_DIF_CTS_SetEdgeLevelInterrupt (int32_t cardIndex, int32_t module, nai_dif_cts_int_t type, nai_dif_interrupt_t interruptType) |
Set the Interrupt Trigger Type for CTS Interrupt type in specified DIF CTS module. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_DIF_CTS_GetEdgeLevelInterrupt (int32_t cardIndex, int32_t module, nai_dif_cts_int_t type, nai_dif_interrupt_t *outinterruptType) |
Retrieves the Interrupt Trigger Type for CTS Interrupt type in specified DIF CTS module. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_DIF_CTS_ClockInitiate (int32_t cardIndex, int32_t module) |
Initiates clock for specified DIF CTS module and is needed to start receiving events. Only the control module needs to be initialized. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_DIF_CTS_SetSwitchDefVal (int32_t cardIndex, int32_t module, uint32_t defaultValue) |
Sets the CIA Switch default value for specified DIF CTS Module. Value written to this register is driven to the output upon flushing the queue. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_DIF_CTS_GetSwitchDefVal (int32_t cardIndex, int32_t module, uint32_t *outdefaultValue) |
Gets the CIA Switch default value for specified DIF CTS Module. Value written to this register is driven to the output upon flushing the queue. | |