eLooM for STM32 application  v3.3.0
A framework for multitasking low power embedded applications powerd by STM32
Loading...
Searching...
No Matches
IIODriver.h File Reference

I/O Driver interface. More...

#include "drivers/IDriver.h"
+ Include dependency graph for IIODriver.h:

Go to the source code of this file.

Typedefs

typedef struct _IIODriver IIODriver
 

Functions

static sys_error_code_t IIODrvWrite (IIODriver *_this, uint8_t *pDataBuffer, uint16_t nDataSize, uint16_t nChannel)
 
static sys_error_code_t IIODrvRead (IIODriver *_this, uint8_t *pDataBuffer, uint16_t nDataSize, uint16_t nChannel)
 

Detailed Description

I/O Driver interface.

Author
STMicroelectronics - ST-Korea - MCD Team
Version
3.0.0
Date
Aug 6, 2019

I/O driver interface extends the basic IDriver interface with read and write operation.

Attention

Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Typedef Documentation

◆ IIODriver

typedef struct _IIODriver IIODriver

Create type name for _IIODriver.

Function Documentation

◆ IIODrvRead()

static sys_error_code_t IIODrvRead ( IIODriver _this,
uint8_t *  pDataBuffer,
uint16_t  nDataSize,
uint16_t  nChannel 
)
inlinestatic
Parameters
_this[IN] specifies a pointer to a IIODriver object.
pDataBuffer[OUT] specifies the buffer used to store the received data.
nDataSize[IN] specified the size in byte of the buffer.
nChannel[IN] specifies the channel from where to read the data.
Returns
SYS_NO_ERROR_CODE if success, an error code otherwise.

◆ IIODrvWrite()

static sys_error_code_t IIODrvWrite ( IIODriver _this,
uint8_t *  pDataBuffer,
uint16_t  nDataSize,
uint16_t  nChannel 
)
inlinestatic
Parameters
_this[IN] specifies a pointer to a IIODriver object.
pDataBuffer[IN] specifies the buffer with the data to be written by the driver.
nDataSize[IN] specified the size in byte of the buffer.
nChannel[IN] specifies the channel where to write the data.
Returns
SYS_NO_ERROR_CODE if success, an error code otherwise.