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

NCA9595 Driver extensions. More...

#include "sarmfsw.h"
#include "NCA9595.h"
Include dependency graph for NCA9595_ex.h:
This graph shows which files directly or indirectly include this file:

Functions

FctERR NCA9595_Read_Register (NCA9595_t *const pCpnt, uint16_t *const data, const NCA9595_wreg reg)
 Read Register of NCA9595 peripheral.
 
FctERR NCA9595_Read_Inputs (NCA9595_t *const pCpnt, uint16_t *const in)
 Read Inputs for NCA9595 peripheral.
 
FctERR NCA9595_Read_Inputs_Union (NCA9595_t *const pCpnt, uNCA9595_REG__IN *const in)
 Read Inputs for NCA9595 peripheral (using union)
 
FctERR NCA9595_Write_Outputs (NCA9595_t *const pCpnt, const uint16_t out)
 Write Outputs for NCA9595 peripheral.
 
FctERR NCA9595_Write_Outputs_Mask (NCA9595_t *const pCpnt, const uint16_t out, const uint16_t mask)
 Write Outputs with mask for NCA9595 peripheral.
 
FctERR NCA9595_Write_Outputs_Union (NCA9595_t *const pCpnt, const uNCA9595_REG__OUT out)
 Write Outputs for NCA9595 peripheral (using union)
 
FctERR NCA9595_Set_Config (NCA9595_t *const pCpnt, const uint16_t cfg)
 Set GPIOs configuration for NCA9595 peripheral.
 
FctERR NCA9595_Set_Config_Mask (NCA9595_t *const pCpnt, const uint16_t cfg, const uint16_t mask)
 Set GPIOs configuration with mask for NCA9595 peripheral.
 
FctERR NCA9595_Set_Config_Union (NCA9595_t *const pCpnt, const uNCA9595_REG__CFG cfg)
 Set GPIOs configuration for NCA9595 peripheral (using union)
 
FctERR NCA9595_Set_Polarity (NCA9595_t *const pCpnt, const uint16_t pol)
 Set Inputs polarity for NCA9595 peripheral.
 
FctERR NCA9595_Set_Polarity_Mask (NCA9595_t *const pCpnt, const uint16_t pol, const uint16_t mask)
 Set Inputs polarity with mask for NCA9595 peripheral.
 
FctERR NCA9595_Set_Polarity_Union (NCA9595_t *const pCpnt, const uNCA9595_REG__POL pol)
 Set Inputs polarity for NCA9595 peripheral (using union)
 
FctERR NCA9595_Set_PullUp (NCA9595_t *const pCpnt, const uint16_t pullup)
 Set Outputs pull-up for NCA9595 peripheral.
 
FctERR NCA9595_Set_PullUp_Mask (NCA9595_t *const pCpnt, const uint16_t pullup, const uint16_t mask)
 Set Outputs pull-up with mask for NCA9595 peripheral.
 
FctERR NCA9595_Set_PullUp_Union (NCA9595_t *const pCpnt, const uNCA9595_REG__PUP pullup)
 Set Outputs pull-up for NCA9595 peripheral (using union)
 
void NCA9595_INT_GPIO_Init (NCA9595_t *const pCpnt, GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin, const GPIO_PinState GPIO_Active)
 Interrupt GPIO pin init for NCA9595.
 
bool NCA9595_INT_GPIO_Get (const NCA9595_t *const pCpnt)
 Interrupt GPIO pin getter for ADS1115.
 

Detailed Description

NCA9595 Driver extensions.

Author
SMFSW

NCA9595: Low-voltage 16-bit I²C and SMBus I/O expander

Function Documentation

◆ NCA9595_INT_GPIO_Get()

bool NCA9595_INT_GPIO_Get ( const NCA9595_t *const pCpnt)

Interrupt GPIO pin getter for ADS1115.

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

◆ NCA9595_INT_GPIO_Init()

void NCA9595_INT_GPIO_Init ( NCA9595_t *const pCpnt,
GPIO_TypeDef *const GPIOx,
const uint16_t GPIO_Pin,
const GPIO_PinState GPIO_Active )

Interrupt GPIO pin init for NCA9595.

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

◆ NCA9595_Read_Inputs()

FctERR NCA9595_Read_Inputs ( NCA9595_t *const pCpnt,
uint16_t *const in )

Read Inputs for NCA9595 peripheral.

Parameters
[in,out]pCpnt- Pointer to NCA9595 component
[in,out]in- Input values (MSB: Port 1 / LSB: Port 0)
Returns
Error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ NCA9595_Read_Inputs_Union()

FctERR NCA9595_Read_Inputs_Union ( NCA9595_t *const pCpnt,
uNCA9595_REG__IN *const in )
inline

Read Inputs for NCA9595 peripheral (using union)

Parameters
[in,out]pCpnt- Pointer to NCA9595 component
[in,out]in- Input union values
Returns
Error code
Here is the call graph for this function:

◆ NCA9595_Read_Register()

FctERR NCA9595_Read_Register ( NCA9595_t *const pCpnt,
uint16_t *const data,
const NCA9595_wreg reg )
inline

Read Register of NCA9595 peripheral.

Parameters
[in,out]pCpnt- Pointer to NCA9595 component
[in,out]data- Pointer to read register value
[in]reg- Register address
Returns
Error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ NCA9595_Set_Config()

FctERR NCA9595_Set_Config ( NCA9595_t *const pCpnt,
const uint16_t cfg )

Set GPIOs configuration for NCA9595 peripheral.

Parameters
[in,out]pCpnt- Pointer to NCA9595 component
[in]cfg- Configuration values (MSB: Port 1 / LSB: Port 0)
Returns
Error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ NCA9595_Set_Config_Mask()

FctERR NCA9595_Set_Config_Mask ( NCA9595_t *const pCpnt,
const uint16_t cfg,
const uint16_t mask )

Set GPIOs configuration with mask for NCA9595 peripheral.

Parameters
[in,out]pCpnt- Pointer to NCA9595 component
[in]cfg- Configuration values (MSB: Port 1 / LSB: Port 0)
[in]mask- GPIOs mask (MSB: Port 1 / LSB: Port 0)
Returns
Error code
Here is the call graph for this function:

◆ NCA9595_Set_Config_Union()

FctERR NCA9595_Set_Config_Union ( NCA9595_t *const pCpnt,
const uNCA9595_REG__CFG cfg )
inline

Set GPIOs configuration for NCA9595 peripheral (using union)

Parameters
[in,out]pCpnt- Pointer to NCA9595 component
[in]cfg- Configuration union values
Returns
Error code
Here is the call graph for this function:

◆ NCA9595_Set_Polarity()

FctERR NCA9595_Set_Polarity ( NCA9595_t *const pCpnt,
const uint16_t pol )

Set Inputs polarity for NCA9595 peripheral.

Parameters
[in]pCpnt- Pointer to NCA9595 component
[in]pol- Polarity values (MSB: Port 1 / LSB: Port 0)
Returns
Error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ NCA9595_Set_Polarity_Mask()

FctERR NCA9595_Set_Polarity_Mask ( NCA9595_t *const pCpnt,
const uint16_t pol,
const uint16_t mask )

Set Inputs polarity with mask for NCA9595 peripheral.

Parameters
[in]pCpnt- Pointer to NCA9595 component
[in]pol- Polarity values (MSB: Port 1 / LSB: Port 0)
[in]mask- Inputs mask (MSB: Port 1 / LSB: Port 0)
Returns
Error code

◆ NCA9595_Set_Polarity_Union()

FctERR NCA9595_Set_Polarity_Union ( NCA9595_t *const pCpnt,
const uNCA9595_REG__POL pol )
inline

Set Inputs polarity for NCA9595 peripheral (using union)

Parameters
[in]pCpnt- Pointer to NCA9595 component
[in]pol- Polarity union values
Returns
Error code
Here is the call graph for this function:

◆ NCA9595_Set_PullUp()

FctERR NCA9595_Set_PullUp ( NCA9595_t *const pCpnt,
const uint16_t pullup )

Set Outputs pull-up for NCA9595 peripheral.

Parameters
[in]pCpnt- Pointer to NCA9595 component
[in]pullup- Pull-up values (MSB: Port 1 / LSB: Port 0)
Returns
Error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ NCA9595_Set_PullUp_Mask()

FctERR NCA9595_Set_PullUp_Mask ( NCA9595_t *const pCpnt,
const uint16_t pullup,
const uint16_t mask )

Set Outputs pull-up with mask for NCA9595 peripheral.

Parameters
[in]pCpnt- Pointer to NCA9595 component
[in]pullup- Pull-up values (MSB: Port 1 / LSB: Port 0)
[in]mask- Outputs mask (MSB: Port 1 / LSB: Port 0)
Returns
Error code

◆ NCA9595_Set_PullUp_Union()

FctERR NCA9595_Set_PullUp_Union ( NCA9595_t *const pCpnt,
const uNCA9595_REG__PUP pullup )
inline

Set Outputs pull-up for NCA9595 peripheral (using union)

Parameters
[in]pCpnt- Pointer to NCA9595 component
[in]pullup- Pull-up union values
Returns
Error code
Here is the call graph for this function:

◆ NCA9595_Write_Outputs()

FctERR NCA9595_Write_Outputs ( NCA9595_t *const pCpnt,
const uint16_t out )

Write Outputs for NCA9595 peripheral.

Parameters
[in,out]pCpnt- Pointer to NCA9595 component
[in]out- Output values (MSB: Port 1 / LSB: Port 0)
Returns
Error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ NCA9595_Write_Outputs_Mask()

FctERR NCA9595_Write_Outputs_Mask ( NCA9595_t *const pCpnt,
const uint16_t out,
const uint16_t mask )

Write Outputs with mask for NCA9595 peripheral.

Parameters
[in,out]pCpnt- Pointer to NCA9595 component
[in]out- Output values (MSB: Port 1 / LSB: Port 0)
[in]mask- Outputs mask (MSB: Port 1 / LSB: Port 0)
Returns
Error code
Here is the call graph for this function:

◆ NCA9595_Write_Outputs_Union()

FctERR NCA9595_Write_Outputs_Union ( NCA9595_t *const pCpnt,
const uNCA9595_REG__OUT out )
inline

Write Outputs for NCA9595 peripheral (using union)

Parameters
[in,out]pCpnt- Pointer to NCA9595 component
[in]out- Output union values
Returns
Error code
Here is the call graph for this function: