]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/include/main.h
Added support for local message processing and some cleanups.
[lincan.git] / lincan / include / main.h
index 17e8f559ddb845aa435a8dd5dc4d66bc7f908537..3bdc912e4ac0d96886ae5e88e000fd1b87320107 100644 (file)
@@ -185,6 +185,7 @@ struct chip_t {
  * @tx_slot: slot holding transmitted message, slot is taken from
  *     canque_test_outslot() call and is freed by canque_free_outslot()
  *     or rescheduled canque_again_outslot()
  * @tx_slot: slot holding transmitted message, slot is taken from
  *     canque_test_outslot() call and is freed by canque_free_outslot()
  *     or rescheduled canque_again_outslot()
+ * @tx_retry_cnt: transmission attempt counter
  * @rx_msg: temporary storage to hold received messages before
  *     calling to canque_filter_msg2edges()
  * @hostchip: pointer to the &chip_t structure this object belongs to
  * @rx_msg: temporary storage to hold received messages before
  *     calling to canque_filter_msg2edges()
  * @hostchip: pointer to the &chip_t structure this object belongs to
@@ -200,8 +201,11 @@ struct msgobj_t {
        int ret;
 
        struct canque_ends_t *qends;
        int ret;
 
        struct canque_ends_t *qends;
+
        struct canque_edge_t *tx_qedge;
        struct canque_slot_t *tx_slot;
        struct canque_edge_t *tx_qedge;
        struct canque_slot_t *tx_slot;
+       int tx_retry_cnt;
+       
        struct canmsg_t rx_msg;
 
        struct chip_t *hostchip;
        struct canmsg_t rx_msg;
 
        struct chip_t *hostchip;
@@ -333,6 +337,7 @@ extern int baudrate;
 extern char *hw[MAX_HW_CARDS];
 extern int irq[MAX_IRQ];
 extern unsigned long io[MAX_HW_CARDS];
 extern char *hw[MAX_HW_CARDS];
 extern int irq[MAX_IRQ];
 extern unsigned long io[MAX_HW_CARDS];
+extern int processlocal;
 
 extern struct canhardware_t *hardware_p;
 extern struct chip_t *chips_p[MAX_TOT_CHIPS];
 
 extern struct canhardware_t *hardware_p;
 extern struct chip_t *chips_p[MAX_TOT_CHIPS];