package socketcan

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

CAN identifier masks for use with filters.

type t

A CAN identifier mask of up to 29 bit;

val create_sff : int -> t

Create a valid CAN 2.0A standard frame format mask with 11 bit from an integer value. Masks all bits that are not in sff_mask.

val create_eff : int -> t

Create a valid CAN 2.0B extended frame format mask with 29 bit from an integer value. Masks all bits that are not in eff_mask.

val to_int : t -> int

Get the mask value as integer.

val sff : t

This is the bitmask for a standard frame format CAN identifier with 11 bit.

val eff : t

This is the bitmask of an extended frame format CAN identifier with 29 bit.

OCaml

Innovation. Community. Security.