| BlueNRG-1 SDK drivers APIs

- Main Page
- Modules
- Classes
- Files

Functions
SDK EVAL I2C Public Functions
SDK EVAL BlueNRG1 » SDK EVAL I2C

## Functions

ErrorStatus | SdkEvalI2CInit (uint32_t baudrate)
| Configures I2C interface. More...
ErrorStatus | SdkEvalI2CWrite (uint8_t *pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr, uint8_t NumByteToWrite)
| I2C function to write registers of a slave device. More...
ErrorStatus | SdkEvalI2CRead (uint8_t *pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr, uint8_t NumByteToRead)
| I2C function to read registers from a slave device. More...
ErrorStatus | SdkEvalI2CDmaInit (uint32_t baudrate)
| Configures I2C interface and the I2C_TX/I2C_RX DMA channels. More...
ErrorStatus | SdkEvalI2CDmaWrite (uint8_t *pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr, uint8_t NumByteToWrite)
| I2C function to write registers of a slave device. More...
ErrorStatus | SdkEvalI2CDmaRead (uint8_t *pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr, uint8_t NumByteToRead)
| I2C function to read registers from a slave device. More...
void | DmaI2CHandlerCallback (void)
| I2C DMA ISR callback function. More...
ErrorStatus | SdkEvalI2CIrqInit (uint32_t baudrate)
| Configures I2C interface. More...
ErrorStatus | SdkEvalI2CIrqWrite (uint8_t *pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr, uint8_t NumByteToWrite)
| I2C function to write registers of a slave device. More...
ErrorStatus | SdkEvalI2CIrqRead (uint8_t *pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr, uint8_t NumByteToRead)
| I2C function to read registers from a slave device. More...
void | IrqI2CHandlerCallback (void)
| I2C DMA ISR callback function. More...

## Detailed Description

## Function Documentation

void DmaI2CHandlerCallback | ( | void |  | ) |

I2C DMA ISR callback function.

Parameters

  None |

Return values

  None |

Definition at line 503 of file SDK_EVAL_I2C.c.

void IrqI2CHandlerCallback | ( | void |  | ) |

I2C DMA ISR callback function.

Parameters

  None |

Return values

  None |

Definition at line 694 of file SDK_EVAL_I2C.c.

ErrorStatus SdkEvalI2CDmaInit | ( | uint32_t | baudrate | ) |

Configures I2C interface and the I2C_TX/I2C_RX DMA channels.

Parameters

  baudrate | I2C clock frequency

Return values

  SUCCESS | in case of success, an error code otherwise

Definition at line 288 of file SDK_EVAL_I2C.c.

ErrorStatus SdkEvalI2CDmaRead | ( | uint8_t * | pBuffer,
|  | uint8_t | DeviceAddr,
|  | uint8_t | RegisterAddr,
|  | uint8_t | NumByteToRead
| ) |  |

I2C function to read registers from a slave device.

Parameters

  pBuffer | buffer to retrieve data from a slave
  DeviceAddr | the I2C slave address
  RegisterAddr | register address
  NumByteToRead | number of byte to read

Return values

  SUCCESS | in case of success, an error code otherwise

Definition at line 421 of file SDK_EVAL_I2C.c.

ErrorStatus SdkEvalI2CDmaWrite | ( | uint8_t * | pBuffer,
|  | uint8_t | DeviceAddr,
|  | uint8_t | RegisterAddr,
|  | uint8_t | NumByteToWrite
| ) |  |

I2C function to write registers of a slave device.

Parameters

  pBuffer | buffer contains data to write
  DeviceAddr | the I2C slave address
  RegisterAddr | register address
  NumByteToRead | number of byte to write

Return values

  SUCCESS | in case of success, an error code otherwise

Definition at line 366 of file SDK_EVAL_I2C.c.

ErrorStatus SdkEvalI2CInit | ( | uint32_t | baudrate | ) |

Configures I2C interface.

Parameters

  baudrate | I2C clock frequency

Return values

  SUCCESS | in case of success, an error code otherwise

Definition at line 126 of file SDK_EVAL_I2C.c.

ErrorStatus SdkEvalI2CIrqInit | ( | uint32_t | baudrate | ) |

Configures I2C interface.

Parameters

  baudrate | I2C clock frequency

Return values

  SUCCESS | in case of success, an error code otherwise

Definition at line 540 of file SDK_EVAL_I2C.c.

ErrorStatus SdkEvalI2CIrqRead | ( | uint8_t * | pBuffer,
|  | uint8_t | DeviceAddr,
|  | uint8_t | RegisterAddr,
|  | uint8_t | NumByteToRead
| ) |  |

I2C function to read registers from a slave device.

Parameters

  pBuffer | buffer to retrieve data from a slave
  DeviceAddr | the I2C slave address
  RegisterAddr | register address
  NumByteToRead | number of byte to read

Return values

  SUCCESS | in case of success, an error code otherwise

Definition at line 637 of file SDK_EVAL_I2C.c.

ErrorStatus SdkEvalI2CIrqWrite | ( | uint8_t * | pBuffer,
|  | uint8_t | DeviceAddr,
|  | uint8_t | RegisterAddr,
|  | uint8_t | NumByteToWrite
| ) |  |

I2C function to write registers of a slave device.

Parameters

  pBuffer | buffer contains data to write
  DeviceAddr | the I2C slave address
  RegisterAddr | register address
  NumByteToRead | number of byte to write

Return values

  SUCCESS | in case of success, an error code otherwise

Definition at line 595 of file SDK_EVAL_I2C.c.

ErrorStatus SdkEvalI2CRead | ( | uint8_t * | pBuffer,
|  | uint8_t | DeviceAddr,
|  | uint8_t | RegisterAddr,
|  | uint8_t | NumByteToRead
| ) |  |

I2C function to read registers from a slave device.

Parameters

  pBuffer | buffer to retrieve data from a slave
  DeviceAddr | the I2C slave address
  RegisterAddr | register address
  NumByteToRead | number of byte to read

Return values

  SUCCESS | in case of success, an error code otherwise

Definition at line 219 of file SDK_EVAL_I2C.c.

ErrorStatus SdkEvalI2CWrite | ( | uint8_t * | pBuffer,
|  | uint8_t | DeviceAddr,
|  | uint8_t | RegisterAddr,
|  | uint8_t | NumByteToWrite
| ) |  |

I2C function to write registers of a slave device.

Parameters

  pBuffer | buffer contains data to write
  DeviceAddr | the I2C slave address
  RegisterAddr | register address
  NumByteToRead | number of byte to write

Return values

  SUCCESS | in case of success, an error code otherwise

Definition at line 171 of file SDK_EVAL_I2C.c.