/** ****************************************************************************** * @file exc80w32_reg.c * @author MCD Application Team * @brief This file provides unitary register function to control the exc80w32 Touch * ****************************************************************************** * @attention * * Copyright (c) 2024 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. * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "exc80w32_reg.h" /** @addtogroup BSP * @{ */ /** @addtogroup Component * @{ */ /** @addtogroup EXC80W32 * @{ */ /** @addtogroup EXC80W32_Exported_Functions * @{ */ /** * @brief Read EXC80W32 component registers * @param ctx component contex * @param reg Register to read from * @param pdata Pointer to data buffer * @param length Number of data to read * @retval Component status */ int32_t exc80w32_read_reg(exc80w32_ctx_t *ctx, uint8_t reg, uint8_t* pdata, uint16_t length) { return ctx->ReadReg(ctx->handle, reg, pdata, length); } /** * @brief Write EXC80W32 component registers * @param ctx component contex * @param reg Register to write to * @param pdata Pointer to data buffer * @param length Number of data to write * @retval Component status */ int32_t exc80w32_write_reg(exc80w32_ctx_t *ctx, uint8_t reg, uint8_t *pdata, uint16_t length) { return ctx->WriteReg(ctx->handle, reg, pdata, length); } /** * @} */ /** * @} */ /** * @} */ /** * @} */