package socketcan

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

Filters for incoming data that can be applied to a socket.

type t

A CAN filter

val create : ?remote_frames:[ `Also | `Exclusive | `No ] -> ?extended_frames:[ `Also | `Exclusive | `No ] -> ?mask:Mask.t -> Id.t -> t

create ~mask:m id creates a new receive filter that matches can-ids for which received_id & mask = id & mask; the default value for can_mask is eff_mask. By default extended_frames is `Also, error_frames is `No and remote_frames is `No.