Skip to main content

Documentation Index

Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

setOcr

Valid for: CANoe DE • CANoe:lite DE

Function Syntax

setOcr(long channel, byte ocr);

Description

Sets the Output Control Register. The values do not become active until the next call of the function resetCan(). It should be noted that these values depend on the CAN platform used.

Parameters

  • CAN channel
    • 0: all channels
    • > 0: only the given channel
  • OCR: Value of the Output Control Register

Return Values

  • 1: success
  • 0: error

Example

...
setOcr(0, 0x02); // set
resetCan(); // activate
...
resetCansetBtr