CANxFilterDisable bug.

General discussion on mikroPascal PRO for PIC32.
Post Reply
Author
Message
ebalvis
Posts: 3
Joined: 26 Aug 2011 09:05

CANxFilterDisable bug.

#1 Post by ebalvis » 24 Feb 2012 22:02

According to the documentation, there are 32 definable filters.
the functions is defined as
CANxFilterDisable procedure (CAN_FILTER: byte);
CANxFilterEnable procedure (CAN_FILTER: byte);
CAN_FILTER: byte. Only 8 to enable or disable filters.???
CAN_FILTER: filter disable selection parameter. Each bit corresponds to appropriate filter. By setting bit the corresponding filter will be disabled.

// Filters 0, 4, 8, 12 are to be disabled:
CAN1FilterDisable(0x1111);

the example is fine, but if I compile with a double word fails.

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: CANxFilterDisable bug.

#2 Post by janko.kaljevic » 27 Feb 2012 16:40

Hello,

Thanks for reporting.
This is error in documentation and we will fix it very soon.

Input parameter is byte type and it represent filter 0..31.

Best regards.

Post Reply

Return to “mikroPascal PRO for PIC32 General”