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

NCA9595 Driver procedures. More...

#include "NCA9595.h"
Include dependency graph for NCA9595_proc.c:

Functions

FctERR NCA9595_Init_Sequence (NCA9595_t *const pCpnt)
 Initialization Sequence for NCA9595 peripheral.
 
FctERR NCA9595_handler (NCA9595_t *const pCpnt)
 Handler for NCA9595 peripheral.
 
FctERR NCA9595_handler_it (NCA9595_t *const pCpnt)
 Handler for NCA9595 peripheral GPIO interrupt.
 
FctERR NCA9595_handler_all (void)
 Handler for all NCA9595 peripherals.
 
FctERR NCA9595_handler_it_all (void)
 Handler for all NCA9595 peripherals GPIO interrupt.
 

Variables

NCA9595_t NCA9595 [I2C_NCA9595_NB] = { 0 }
 NCA9595 User structure.
 

Detailed Description

NCA9595 Driver procedures.

Author
SMFSW

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

Function Documentation

◆ NCA9595_handler()

FctERR NCA9595_handler ( NCA9595_t *const pCpnt)

Handler for NCA9595 peripheral.

Weak Functions
NCA9595 handler may be user implemented to suit custom needs
Note
Handler for NCA9595 is made for example (as its implementation depends mostly on I/O used) Basically, gets inputs (if any declared) and write outputs to previously stored values (if any declared).
May be called periodically to handle NCA9595 tasks
Alternately may be called when event occurs on NCA9595 pin (or by calling NCA9595_handler_it instead)
Parameters
[in]pCpnt- Pointer to NCA9595 component
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ NCA9595_handler_all()

FctERR NCA9595_handler_all ( void )

Handler for all NCA9595 peripherals.

Note
May be called periodically to handle all NCA9595 tasks
Returns
FctERR - error code
Here is the call graph for this function:

◆ NCA9595_handler_it()

FctERR NCA9595_handler_it ( NCA9595_t *const pCpnt)

Handler for NCA9595 peripheral GPIO interrupt.

Note
NCA9595_INT_GPIO_Init has to be called at init before using interrupt handler function
Weak Functions
NCA9595 GPIO interrupt handler may be user implemented to suit custom needs
Note
May be called periodically to handle NCA9595 tasks through interrupts
Parameters
[in]pCpnt- Pointer to NCA9595 component
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ NCA9595_handler_it_all()

FctERR NCA9595_handler_it_all ( void )

Handler for all NCA9595 peripherals GPIO interrupt.

Note
NCA9595_INT_GPIO_Init has to be called at init before using interrupt handler function
May be called periodically to handle all NCA9595 tasks
Returns
FctERR - error code
Here is the call graph for this function:

◆ NCA9595_Init_Sequence()

FctERR NCA9595_Init_Sequence ( NCA9595_t *const pCpnt)

Initialization Sequence for NCA9595 peripheral.

Weak Functions
NCA9595 Init sequence may be user implemented if custom initialization sequence needed
Note
Weak does nothing (keeping all IOs as inputs). Can be implemented with required need for outputs and/or interrupt pin.
Parameters
[in]pCpnt- Pointer to NCA9595 component
Returns
FctERR - error code
Here is the caller graph for this function:

Variable Documentation

◆ NCA9595

NCA9595_t NCA9595[I2C_NCA9595_NB] = { 0 }

NCA9595 User structure.