I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
Loading...
Searching...
No Matches
AT42QT1244_ex.c File Reference

AT42QT1244 Driver extensions. More...

#include "AT42QT1244.h"
Include dependency graph for AT42QT1244_ex.c:

Functions

FctERR AT42QT1244_Send_Command (AT42QT1244_t *const pCpnt, const AT42QT_cmd cmd)
 Send command to AT42QT1244 peripheral.
 
FctERR AT42QT1244_Send_Setup (AT42QT1244_t *const pCpnt, uint16_t *const hcrc, const uint8_t *setup, const uint8_t addr, const uint8_t nb)
 Send setup parameters to AT42QT1244 peripheral.
 
FctERR AT42QT1244_Setup_Keys (AT42QT1244_t *const pCpnt, uint16_t *const hcrc, const uint32_t mask_keys, const bool use)
 Key use setup for AT42QT1244 peripheral.
 
FctERR AT42QT1244_Setup_FHM (AT42QT1244_t *const pCpnt, uint16_t *const hcrc, const AT42QT_FHM FHM)
 Frequency hopping mode setup for AT42QT1244 peripheral.
 
FctERR AT42QT1244_Reset (AT42QT1244_t *const pCpnt)
 Reset command for AT42QT1244 peripheral.
 
FctERR AT42QT1244_Get_Keys (AT42QT1244_t *const pCpnt, uint32_t *Keys)
 Get keys detect status for AT42QT1244 peripheral.
 
bool AT42QT1244_is_Calib_Pending (AT42QT1244_t *const pCpnt)
 Get calibration status for AT42QT1244 peripheral.
 
void AT42QT1244_CHANGE_GPIO_Init (AT42QT1244_t *const pCpnt, GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin, const GPIO_PinState GPIO_Active)
 Change GPIO pin init for AT42QT1244.
 
bool AT42QT1244_CHANGE_GPIO_Get (const AT42QT1244_t *const pCpnt)
 Change GPIO pin getter for AT42QT1244.
 
void AT42QT1244_RST_GPIO_Init (AT42QT1244_t *const pCpnt, GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin, const GPIO_PinState GPIO_Active)
 Reset GPIO pin init for AT42QT1244.
 
void AT42QT1244_RST_GPIO_Set (AT42QT1244_t *const pCpnt, const bool state)
 Reset GPIO pin setter for AT42QT1244.
 

Detailed Description

AT42QT1244 Driver extensions.

Author
SMFSW

AT42QT1244: 24-key QMatrix FMEA IEC/EN/UL60730 Touch Sensor

Function Documentation

◆ AT42QT1244_CHANGE_GPIO_Get()

bool AT42QT1244_CHANGE_GPIO_Get ( const AT42QT1244_t *const pCpnt)

Change GPIO pin getter for AT42QT1244.

Weak Functions
AT42QT1244 Change GPIO pin getter may be user implemented if needed
Parameters
[in]pCpnt- Pointer to AT42QT1244 component
Returns
CHANGE pin state value (0: inactive, 1: active)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AT42QT1244_CHANGE_GPIO_Init()

void AT42QT1244_CHANGE_GPIO_Init ( AT42QT1244_t *const pCpnt,
GPIO_TypeDef *const GPIOx,
const uint16_t GPIO_Pin,
const GPIO_PinState GPIO_Active )

Change GPIO pin init for AT42QT1244.

Weak Functions
AT42QT1244 Change GPIO pin init may be user implemented if needed
Parameters
[in]pCpnt- Pointer to AT42QT1244 component
[in]GPIOx- CHANGE port
[in]GPIO_Pin- CHANGE pin
[in]GPIO_ActiveCHANGE pin active state
Here is the call graph for this function:

◆ AT42QT1244_Get_Keys()

FctERR AT42QT1244_Get_Keys ( AT42QT1244_t *const pCpnt,
uint32_t * Keys )

Get keys detect status for AT42QT1244 peripheral.

Parameters
[in]pCpnt- Pointer to AT42QT1244 component
[in]Keys- Pointer to keys result
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AT42QT1244_is_Calib_Pending()

bool AT42QT1244_is_Calib_Pending ( AT42QT1244_t *const pCpnt)

Get calibration status for AT42QT1244 peripheral.

Parameters
[in]pCpnt- Pointer to AT42QT1244 component
Returns
Calibration status
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AT42QT1244_Reset()

FctERR AT42QT1244_Reset ( AT42QT1244_t *const pCpnt)

Reset command for AT42QT1244 peripheral.

Warning
After Reset command is sent, a blocking delay described in AT42QT1244_Delay_PowerOn is called to let component initialize properly
Parameters
[in]pCpnt- Pointer to AT42QT1244 component
Returns
FctERR - error code
Here is the call graph for this function:

◆ AT42QT1244_RST_GPIO_Init()

void AT42QT1244_RST_GPIO_Init ( AT42QT1244_t *const pCpnt,
GPIO_TypeDef *const GPIOx,
const uint16_t GPIO_Pin,
const GPIO_PinState GPIO_Active )

Reset GPIO pin init for AT42QT1244.

Weak Functions
AT42QT1244 Reset GPIO pin init may be user implemented if needed
Parameters
[in]pCpnt- Pointer to AT42QT1244 component
[in]GPIOx- RST port
[in]GPIO_Pin- RST pin
[in]GPIO_ActiveRST pin active state
Here is the call graph for this function:

◆ AT42QT1244_RST_GPIO_Set()

void AT42QT1244_RST_GPIO_Set ( AT42QT1244_t *const pCpnt,
const bool state )

Reset GPIO pin setter for AT42QT1244.

Weak Functions
AT42QT1244 Reset GPIO pin setter may be user implemented if needed
Parameters
[in]pCpnt- Pointer to AT42QT1244 component
[in]state- state to write on RST pin (0: inactive, 1: active)
Here is the call graph for this function:

◆ AT42QT1244_Send_Command()

FctERR AT42QT1244_Send_Command ( AT42QT1244_t *const pCpnt,
const AT42QT_cmd cmd )

Send command to AT42QT1244 peripheral.

Parameters
[in]pCpnt- Pointer to AT42QT1244 component
[in]cmd- Command to send
Note
AT42QT__WRITE_SETUPS cannot be used in this function (does not make sense, as it's used to write whole setup in one transmission)
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AT42QT1244_Send_Setup()

FctERR AT42QT1244_Send_Setup ( AT42QT1244_t *const pCpnt,
uint16_t *const hcrc,
const uint8_t * setup,
const uint8_t addr,
const uint8_t nb )

Send setup parameters to AT42QT1244 peripheral.

Note
No AT42QT1244 peripheral reset done after writing setups, should be customly implemented when needed
Some issues encountered while writing setup block (reason unidentified), resetting the MCU and trying to write again seems to solve issue
Parameters
[in]pCpnt- Pointer to AT42QT1244 component
[in,out]hcrc- Pointer to resulting CRC value
[in]setup- Parameters to send
[in]addr- Setup address in AT42QT1244 peripheral
[in]nb- Number of setup values to send
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AT42QT1244_Setup_FHM()

FctERR AT42QT1244_Setup_FHM ( AT42QT1244_t *const pCpnt,
uint16_t *const hcrc,
const AT42QT_FHM FHM )

Frequency hopping mode setup for AT42QT1244 peripheral.

Parameters
[in]pCpnt- Pointer to AT42QT1244 component
[in,out]hcrc- Pointer to resulting CRC value
[in]FHM- Frequency hopping mode parameters
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AT42QT1244_Setup_Keys()

FctERR AT42QT1244_Setup_Keys ( AT42QT1244_t *const pCpnt,
uint16_t *const hcrc,
const uint32_t mask_keys,
const bool use )

Key use setup for AT42QT1244 peripheral.

Parameters
[in]pCpnt- Pointer to AT42QT1244 component
[in,out]hcrc- Pointer to resulting CRC value
[in]mask_keys- mask for keys to configure
[in]use- Key enabled/disabled
Returns
FctERR - error code
Here is the call graph for this function: