Generic mbed Extensions used by STM Expansion Board Firmware Packages.
Dependents: X_NUCLEO_IKS01A1 X_NUCLEO_6180XA1 1-DoorCloser 1-DoorCloser ... more
Fork of X_NUCLEO_COMMON by
Generic mbed Extensions used by STM Expansion Board Firmware Packages
DbgMCU
Helper class DbgMCU
providing a default constructor which enables debugging on STM32 MCUs while using sleep modes.
DevI2C
Helper class DevI2C
providing functions for multi-register I2C communication common for a series of I2C devices.
DevSPI
Helper class DevSPI
providing functions for SPI communication common for a series of SPI devices.
Diff: DevI2C/DevI2C.h
- Revision:
- 6:e16d452ac87b
- Parent:
- 5:efc56a90dc5a
- Child:
- 7:55d59a1605c3
--- a/DevI2C/DevI2C.h Wed May 27 11:56:24 2015 +0200 +++ b/DevI2C/DevI2C.h Fri Jun 05 16:54:47 2015 +0200 @@ -65,8 +65,8 @@ * where to start writing to (must be correctly masked). * @param NumByteToWrite number of bytes to be written. * @retval 0 if ok, - * -1 if an I2C error has occured, or - * -2 on temporary buffer overflow (i.e. NumByteToWrite was too high) + * @retval -1 if an I2C error has occured, or + * @retval -2 on temporary buffer overflow (i.e. NumByteToWrite was too high) * @note On some devices if NumByteToWrite is greater * than one, the RegisterAddr must be masked correctly! */ @@ -95,7 +95,8 @@ * @param RegisterAddr specifies the internal address register * where to start reading from (must be correctly masked). * @param NumByteToRead number of bytes to be read. - * @retval 0 if ok, -1 if an I2C error has occured + * @retval 0 if ok, + * @retval -1 if an I2C error has occured * @note On some devices if NumByteToWrite is greater * than one, the RegisterAddr must be masked correctly! */