Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions
ni_tio.c File Reference
#include "ni_tio_internal.h"

Go to the source code of this file.

Enumerations

enum  ni_660x_clock_source {
  NI_660x_Timebase_1_Clock = 0x0, NI_660x_Source_Pin_i_Clock = 0x1, NI_660x_Next_Gate_Clock = 0xa, NI_660x_Timebase_2_Clock = 0x12,
  NI_660x_Next_TC_Clock = 0x13, NI_660x_Timebase_3_Clock = 0x1e, NI_660x_Logic_Low_Clock = 0x1f
}
 
enum  ni_m_series_clock_source {
  NI_M_Series_Timebase_1_Clock = 0x0, NI_M_Series_Timebase_2_Clock = 0x12, NI_M_Series_Next_TC_Clock = 0x13, NI_M_Series_Next_Gate_Clock = 0x14,
  NI_M_Series_PXI_Star_Trigger_Clock = 0x14, NI_M_Series_PXI10_Clock = 0x1d, NI_M_Series_Timebase_3_Clock = 0x1e, NI_M_Series_Analog_Trigger_Out_Clock = 0x1e,
  NI_M_Series_Logic_Low_Clock = 0x1f
}
 
enum  ni_660x_gate_select {
  NI_660x_Source_Pin_i_Gate_Select = 0x0, NI_660x_Gate_Pin_i_Gate_Select = 0x1, NI_660x_Next_SRC_Gate_Select = 0xa, NI_660x_Next_Out_Gate_Select = 0x14,
  NI_660x_Logic_Low_Gate_Select = 0x1f
}
 
enum  ni_m_series_gate_select {
  NI_M_Series_Timestamp_Mux_Gate_Select = 0x0, NI_M_Series_AI_START2_Gate_Select = 0x12, NI_M_Series_PXI_Star_Trigger_Gate_Select = 0x13, NI_M_Series_Next_Out_Gate_Select = 0x14,
  NI_M_Series_AI_START1_Gate_Select = 0x1c, NI_M_Series_Next_SRC_Gate_Select = 0x1d, NI_M_Series_Analog_Trigger_Out_Gate_Select = 0x1e, NI_M_Series_Logic_Low_Gate_Select = 0x1f
}
 
enum  ni_660x_second_gate_select {
  NI_660x_Source_Pin_i_Second_Gate_Select = 0x0, NI_660x_Up_Down_Pin_i_Second_Gate_Select = 0x1, NI_660x_Next_SRC_Second_Gate_Select = 0xa, NI_660x_Next_Out_Second_Gate_Select = 0x14,
  NI_660x_Selected_Gate_Second_Gate_Select = 0x1e, NI_660x_Logic_Low_Second_Gate_Select = 0x1f
}
 

Functions

 MODULE_AUTHOR ("Comedi <[email protected]>")
 
 MODULE_DESCRIPTION ("Comedi support for NI general-purpose counters")
 
 MODULE_LICENSE ("GPL")
 
 module_init (ni_tio_init_module)
 
 module_exit (ni_tio_cleanup_module)
 
struct ni_gpct_deviceni_gpct_device_construct (struct comedi_device *dev, void(*write_register)(structni_gpct *counter, unsignedbits, enumni_gpct_registerreg), unsigned(*read_register)(struct ni_gpct *counter, enum ni_gpct_register reg), enum ni_gpct_variant variant, unsigned num_counters)
 
 EXPORT_SYMBOL_GPL (ni_gpct_device_construct)
 
void ni_gpct_device_destroy (struct ni_gpct_device *counter_dev)
 
 EXPORT_SYMBOL_GPL (ni_gpct_device_destroy)
 
void ni_tio_init_counter (struct ni_gpct *counter)
 
 EXPORT_SYMBOL_GPL (ni_tio_init_counter)
 
int ni_tio_arm (struct ni_gpct *counter, int arm, unsigned start_trigger)
 
 EXPORT_SYMBOL_GPL (ni_tio_arm)
 
int ni_tio_set_gate_src (struct ni_gpct *counter, unsigned gate_index, unsigned int gate_source)
 
 EXPORT_SYMBOL_GPL (ni_tio_set_gate_src)
 
int ni_tio_insn_config (struct ni_gpct *counter, struct comedi_insn *insn, unsigned int *data)
 
 EXPORT_SYMBOL_GPL (ni_tio_insn_config)
 
int ni_tio_rinsn (struct ni_gpct *counter, struct comedi_insn *insn, unsigned int *data)
 
 EXPORT_SYMBOL_GPL (ni_tio_rinsn)
 
int ni_tio_winsn (struct ni_gpct *counter, struct comedi_insn *insn, unsigned int *data)
 
 EXPORT_SYMBOL_GPL (ni_tio_winsn)
 

Enumeration Type Documentation

Enumerator:
NI_660x_Timebase_1_Clock 
NI_660x_Source_Pin_i_Clock 
NI_660x_Next_Gate_Clock 
NI_660x_Timebase_2_Clock 
NI_660x_Next_TC_Clock 
NI_660x_Timebase_3_Clock 
NI_660x_Logic_Low_Clock 

Definition at line 146 of file ni_tio.c.

Enumerator:
NI_660x_Source_Pin_i_Gate_Select 
NI_660x_Gate_Pin_i_Gate_Select 
NI_660x_Next_SRC_Gate_Select 
NI_660x_Next_Out_Gate_Select 
NI_660x_Logic_Low_Gate_Select 

Definition at line 201 of file ni_tio.c.

Enumerator:
NI_660x_Source_Pin_i_Second_Gate_Select 
NI_660x_Up_Down_Pin_i_Second_Gate_Select 
NI_660x_Next_SRC_Second_Gate_Select 
NI_660x_Next_Out_Second_Gate_Select 
NI_660x_Selected_Gate_Second_Gate_Select 
NI_660x_Logic_Low_Second_Gate_Select 

Definition at line 257 of file ni_tio.c.

Enumerator:
NI_M_Series_Timebase_1_Clock 
NI_M_Series_Timebase_2_Clock 
NI_M_Series_Next_TC_Clock 
NI_M_Series_Next_Gate_Clock 
NI_M_Series_PXI_Star_Trigger_Clock 
NI_M_Series_PXI10_Clock 
NI_M_Series_Timebase_3_Clock 
NI_M_Series_Analog_Trigger_Out_Clock 
NI_M_Series_Logic_Low_Clock 

Definition at line 170 of file ni_tio.c.

Enumerator:
NI_M_Series_Timestamp_Mux_Gate_Select 
NI_M_Series_AI_START2_Gate_Select 
NI_M_Series_PXI_Star_Trigger_Gate_Select 
NI_M_Series_Next_Out_Gate_Select 
NI_M_Series_AI_START1_Gate_Select 
NI_M_Series_Next_SRC_Gate_Select 
NI_M_Series_Analog_Trigger_Out_Gate_Select 
NI_M_Series_Logic_Low_Gate_Select 

Definition at line 221 of file ni_tio.c.

Function Documentation

EXPORT_SYMBOL_GPL ( ni_gpct_device_construct  )
EXPORT_SYMBOL_GPL ( ni_gpct_device_destroy  )
EXPORT_SYMBOL_GPL ( ni_tio_init_counter  )
EXPORT_SYMBOL_GPL ( ni_tio_arm  )
EXPORT_SYMBOL_GPL ( ni_tio_set_gate_src  )
EXPORT_SYMBOL_GPL ( ni_tio_insn_config  )
EXPORT_SYMBOL_GPL ( ni_tio_rinsn  )
EXPORT_SYMBOL_GPL ( ni_tio_winsn  )
MODULE_AUTHOR ( "Comedi <[email protected]>"  )
MODULE_DESCRIPTION ( "Comedi support for NI general-purpose counters"  )
module_exit ( ni_tio_cleanup_module  )
module_init ( ni_tio_init_module  )
MODULE_LICENSE ( "GPL"  )
struct ni_gpct_device* ni_gpct_device_construct ( struct comedi_device dev,
void(*)(structni_gpct *counter, unsignedbits, enumni_gpct_registerreg)  write_register,
unsigned(*)(struct ni_gpct *counter, enum ni_gpct_register reg read_register,
enum ni_gpct_variant  variant,
unsigned  num_counters 
)
read

Definition at line 294 of file ni_tio.c.

void ni_gpct_device_destroy ( struct ni_gpct_device counter_dev)

Definition at line 337 of file ni_tio.c.

int ni_tio_arm ( struct ni_gpct counter,
int  arm,
unsigned  start_trigger 
)

Definition at line 544 of file ni_tio.c.

void ni_tio_init_counter ( struct ni_gpct counter)

Definition at line 370 of file ni_tio.c.

int ni_tio_insn_config ( struct ni_gpct counter,
struct comedi_insn insn,
unsigned int data 
)

Definition at line 1581 of file ni_tio.c.

int ni_tio_rinsn ( struct ni_gpct counter,
struct comedi_insn insn,
unsigned int data 
)

Definition at line 1627 of file ni_tio.c.

int ni_tio_set_gate_src ( struct ni_gpct counter,
unsigned  gate_index,
unsigned int  gate_source 
)

Definition at line 1222 of file ni_tio.c.

int ni_tio_winsn ( struct ni_gpct counter,
struct comedi_insn insn,
unsigned int data 
)

Definition at line 1694 of file ni_tio.c.