MikroElektronika PIC Microcontrollers PIC18 Bedienungsanleitung Seite 27

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 40
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 26
CAN_CONFIG_SAMPLE_ONCE Sample bus once at sample point
CAN_CONFIG_SAMPLE_THRICE Sample bus three times prior to
sample point
CAN_CONFIG_STD_MSG Accept only standard identifier
messages
CAN_CONFIG_XTD_MSG Accept only extended identifier
messages
CAN_CONFIG_DBL_BUFFER_ON Use double buffering to receive
data
CAN_CONFIG_DBL_BUFFER_OFF Do not use double buffering
CAN_CONFIG_ALL_MSG Accept all messages including
invalid ones
CAN_CONFIG_VALID_XTD_MSG Accept only valid extended
identifier messages
CAN_CONFIG_VALID_STD_MSG Accept only valid standard
identifier messages
CAN_CONFIG_ALL_VALID_MSG Accept all valid messages
These configuration values can be bitwise AND’ed to form complex configuration
values.
9.10.4 CANSetBaudRate
The CANSetBaudRate function is used to set the CAN bus baud rate. The function
prototype is:
void CANSetBaudRate(char SJW, char BRP, char PHSEG1, char PHSEG2,
char PROPSEG, char CAN_CONFIG_FLAGS)
The arguments of the function are as in function CANInitialize.
9.10.5 CANSetMask
The CANSetMask function sets the mask for filtering messages. The function
prototype is:
www.newnespress.com
501Advanced PIC18 Projects—CAN Bus Projects
Seitenansicht 26
1 2 ... 22 23 24 25 26 27 28 29 30 31 32 ... 39 40

Kommentare zu diesen Handbüchern

Keine Kommentare