CANSELPAGE

CANSELPAGE

Top  Previous  Next

Action

Selects the Message Object index or page.

 

 

Syntax

CANSELPAGE index

 

 

Remarks

All 15 message objects share the same registers. With CANSELPAGE you select the index of the MOB you want to access.

The index is a constant or variable in the range of 0-14.

 

You should save and restore the CANPAGE register when changing the index. This is shown in the CAN example.

 

 

See also

CONFIG CANBUS , CONFIG CANMOB , CANBAUD, CANRESET, CANCLEARMOB, CANCLEARALLMOBS, CANSEND, CANRECEIVE , CANID, CANGETINTS

 

 

 

Example