CMSIS-Driver Validation  Version 1.0
Driver Validation
 All Files Functions Variables Macros Groups Pages
I2C Validation

I2C test cases. More...

Functions

void I2C_GetCapabilities (void)
 Test case: I2C_GetCapabilities.
 
void I2C_Initialization (void)
 Test case: I2C_Initialization.
 
void I2C_CheckInvalidInit (void)
 Test case: I2C_CheckInvalidInit.
 
void I2C_PowerControl (void)
 Test case: I2C_PowerControl.
 
void I2C_SetBusSpeed (void)
 Test case: I2C_SetBusSpeed.
 
void I2C_SetOwnAddress (void)
 Test case: I2C_SetOwnAddress.
 
void I2C_BusClear (void)
 Test case: I2C_BusClear.
 
void I2C_AbortTransfer (void)
 Test case: I2C_AbortTransfer.
 

Description

The I2C validation test performs the following checks:

Function Documentation

void I2C_AbortTransfer ( void  )

The test case I2C_AbortTransfer verifies the Control function with the sequence:

  • Abort transfer
void I2C_BusClear ( void  )

The test case I2C_BusClear verifies the Control function with the sequence:

  • Clear Bus
void I2C_CheckInvalidInit ( void  )

The test case I2C_CheckInvalidInit verifies the driver behaviour when receiving an invalid initialization sequence:

  • Uninitialize
  • PowerControl with Power off
  • PowerControl with Power on
  • Control with bus speed fast
void I2C_GetCapabilities ( void  )

The test case I2C_GetCapabilities verifies the function GetCapabilities.

void I2C_Initialization ( void  )

The test case I2C_Initialization verifies the I2C functions with the sequence:

  • Initialize without callback
  • Uninitialize
  • Initialize with callback
void I2C_PowerControl ( void  )

The test case I2C_PowerControl verifies the PowerControl function with the sequence:

  • Power on
  • Power off
  • Power on
void I2C_SetBusSpeed ( void  )

The test case I2C_SetBusSpeed verifies the Control function with the sequence:

  • Set bus speed standard
  • Set bus speed fast
  • Set bus speed fast plus
  • Set bus speed high
void I2C_SetOwnAddress ( void  )

The test case I2C_SetOwnAddress verifies the Control function with the sequence:

  • Set slave own address 0x0000
  • Set slave own address 0x0001
  • Set slave own address 0x00FF
  • Set slave own address 0x03FF