group::CRC

The Cyclic Redundancy Check (CRC) module is an API to access an MCUs integrated cyclic redundancy check hardware unit.

More information about accessing peripheral IO is in the Device Interface section.

Details

defineCRC_VERSION


defineCRC_IOC_IDENT_CHAR


defineI_CRC_GETVERSION


defineI_CRC_GETINFO


defineI_CRC_SETATTR


defineI_CRC_SETACTION


defineI_CRC_GET

This request reads the value of the timer. For example:

crc_time_t current_time;
ioctl(crc_fd, I_CRC_GET, &current_time );

defineI_CRC_TOTAL


enumcrc_flag_t

  • CRC_FLAG_NONE
  • CRC_FLAG_ENABLE Enable the CRC
  • CRC_FLAG_DISABLE Disable the CRC
  • CRC_FLAG_IS_32BIT Use a 32-bit CRC
  • CRC_FLAG_IS_16BIT Use a 16-bit CRC
  • CRC_FLAG_IS_8BIT Use a 8-bit CRC
  • CRC_FLAG_IS_7BIT Use a 7-bit CRC
  • CRC_FLAG_IS_INVERT_OUTPUT Invert the output
  • CRC_FLAG_IS_DEFAULT_POLYNOMIAL Use the default polynomial
  • CRC_FLAG_IS_DEFAULT_INTIAL_VALUE Use the default initial value
  • CRC_FLAG_IS_INVERT_INPUT_8BIT Invert the input as bytes
  • CRC_FLAG_IS_INVERT_INPUT_16BIT Invert the input as 16-bit words
  • CRC_FLAG_IS_INVERT_INPUT_32BIT Invert the input as 32-bit words
  • CRC_FLAG_IS_INPUT_32BIT Input data is 32 bit words
  • CRC_FLAG_IS_INPUT_16BIT Input data is 16 bit words
  • CRC_FLAG_IS_INPUT_8BIT Input data is bytes


date: “2019-06-27” layout: post title: struct::crc_info_t katex: true

categories: struct

Methods

Details

public u32o_flags


public u32o_events


public u32polynomial


public u32initial_value


public u32resd



date: “2019-06-27” layout: post title: struct::crc_attr_t katex: true

categories: struct

This data structure defines the structure used with I_CRC_SETATTR ioctl requests on the RTC. It is also used when opening the RTC.

Methods

Details

public u32o_flags

Bitmask for setting attributes


public u32freq

Calibration frequency for setting the pre-scalar


public u32seed


public u32initial_value


public u32resd


X

Thanks for Coming!

Subscribe to news and updates