/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcilib/pcilib.h

  • Committer: Suren A. Chilingaryan
  • Date: 2015-09-24 02:28:45 UTC
  • mfrom: (305.1.19 views)
  • Revision ID: csa@suren.me-20150924022845-p7hc8lh8v0q48g0r
Finalyze XML support and provide initial support for views (only descriptions so far)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
typedef uint8_t pcilib_bar_t;                   /**< Type holding the PCI Bar number */
15
15
typedef uint16_t pcilib_register_t;             /**< Type holding the register position within the field listing registers in the model */
 
16
typedef uint16_t pcilib_view_t;                 /**< Type holding the register view position within view listing in the model */
 
17
typedef uint16_t pcilib_unit_t;                 /**< Type holding the value unit position within unit listing in the model */
16
18
typedef uint32_t pcilib_register_addr_t;        /**< Type holding the register address within address-space of BARs */
17
19
typedef uint8_t pcilib_register_size_t;         /**< Type holding the size in bits of the register */
18
20
typedef uint32_t pcilib_register_value_t;       /**< Type holding the register value */
39
41
} pcilib_endianess_t;
40
42
 
41
43
typedef enum {
 
44
    PCILIB_TYPE_STRING = 0,                     /**< char* */
 
45
    PCILIB_TYPE_DOUBLE = 1,                     /**< double */
 
46
    PCILIB_TYPE_LONG = 2
 
47
} pcilib_data_type_t;
 
48
 
 
49
typedef enum {
42
50
    PCILIB_DMA_IRQ = 1,
43
51
    PCILIB_EVENT_IRQ = 2
44
52
} pcilib_irq_type_t;
192
200
int pcilib_read_register(pcilib_t *ctx, const char *bank, const char *regname, pcilib_register_value_t *value);
193
201
int pcilib_write_register(pcilib_t *ctx, const char *bank, const char *regname, pcilib_register_value_t value);
194
202
 
 
203
int pcilib_read_register_view(pcilib_t *ctx, const char *bank, const char *regname, const char *unit, pcilib_data_type_t value_type, size_t value_size, void *value);
 
204
int pcilib_write_register_view(pcilib_t *ctx, const char *bank, const char *regname, const char *unit, pcilib_data_type_t value_type, size_t value_size, void *value);
 
205
 
195
206
int pcilib_reset(pcilib_t *ctx);
196
207
int pcilib_trigger(pcilib_t *ctx, pcilib_event_t event, size_t trigger_size, void *trigger_data);
197
208