Software Library API naibrd 1.62
See all documentation at naii.docs.com
|
#include <stdlib.h>
#include "functions/naibrd_prnt.h"
#include "maps/nai_map_prnt.h"
#include "advanced/naibrd_adv.h"
#include "naibrd_config.h"
#include "boards/naibrd_gen5.h"
Functions | |
NAIBRDFUNC int32_t NAIAPI | naibrd_PRNT_GetChannelCount (uint32_t modId) |
Returns the number of channels for the specified Printer Module ID. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PRNT_SetControl (int32_t cardIndex, int32_t module, int32_t channel, nai_prnt_control_t control, uint32_t data) |
Sets the printer's control for the specified module and channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PRNT_GetControl (int32_t cardIndex, int32_t module, int32_t channel, nai_prnt_control_t control, uint32_t *p_outdata) |
Retrieves the printer's control for the specified module and channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PRNT_SetTerminationEnable (int32_t cardIndex, int32_t module, int32_t channel, nai_prnt_termination_enable_t termEnable, uint32_t data) |
Enables/Disables the printer's termination resistors for the specified I/O lines on the specified module and channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PRNT_GetTerminationEnable (int32_t cardIndex, int32_t module, int32_t channel, nai_prnt_termination_enable_t termEnable, uint32_t *p_outdata) |
Retrieves the printer's I/O resistor termination for the specified module and channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PRNT_GetStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_prnt_status_type_t statusType, nai_prnt_status_t prntStatus, nai_status_bit_t *p_outstatusBit) |
Retrieves the printer's status for the specified module and channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PRNT_GetStatusRaw (int32_t cardIndex, int32_t module, int32_t channel, nai_prnt_status_type_t statusType, nai_prnt_status_t *p_outprntStatusRaw) |
Retrieves the printer's raw status register value for the specified module and channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PRNT_ClearStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_prnt_status_t prntStatus) |
Clears the printer's status corresponding to the specified status, module and channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PRNT_ReadRxFIFO (int32_t cardIndex, int32_t module, int32_t channel, int32_t count, uint32_t *p_outcountRemaining, uint32_t *p_outrxFifoData, uint32_t *p_outreadCount) |
Retrieves data elements from the Printer's FIFO buffer for the specified module and channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PRNT_GetRxFIFOCount (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outrxFifoCount) |
Retrieves the FIFO counter register that indicates the number of data elements in the Printer FIFO buffer for the specified module and channel. Each time a read operation is made to the Printer's FIFO Buffer, the corresponding FIFO counter register is decremented by one. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PRNT_GetFIFOStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_prnt_status_type_t statusType, nai_prnt_fifo_status_t fifoStatus, nai_status_bit_t *p_outstatusBit) |
Retrieves the printer's FIFO status for the specified module and channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PRNT_GetFIFOStatusRaw (int32_t cardIndex, int32_t module, int32_t channel, nai_prnt_status_type_t statusType, nai_prnt_fifo_status_t *p_outfifoStatusRaw) |
Retrieves the printer's FIFO status for the specified module and channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PRNT_ClearFIFOStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_prnt_fifo_status_t fifoStatus) |
Clears the printer's FIFO status corresponding to the specified status, module and channel. | |