Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
expand13_click.h File Reference

mikrosdk interface More...

#include <stdint.h>
Include dependency graph for expand13_click.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EXPAND13_USE_INTERRUPT   1
 
#define EXPAND13_NO_PIN_MASK   0x00
 
#define EXPAND13_PIN_0_MASK   0x01
 
#define EXPAND13_PIN_1_MASK   0x02
 
#define EXPAND13_PIN_2_MASK   0x04
 
#define EXPAND13_PIN_3_MASK   0x08
 
#define EXPAND13_PIN_4_MASK   0x10
 
#define EXPAND13_PIN_5_MASK   0x20
 
#define EXPAND13_PIN_6_MASK   0x40
 
#define EXPAND13_PIN_7_MASK   0x80
 
#define EXPAND13_ALL_PINS_MASK   0xFF
 
#define EXPAND13_PORT_0   0x00
 
#define EXPAND13_PORT_1   0x01
 
#define EXPAND13_PORT_2   0x02
 
#define EXPAND13_PORT_3   0x03
 
#define EXPAND13_PORT_4   0x04
 
#define EXPAND13_PORT_5   0x05
 
#define EXPAND13_I2C_ADDR   0x20
 
#define EXPAND13_T_RESET   1 /* 1 ms for reset */
 

Enumerations

enum  expand13_alarm_state { SIF_PI4IOE5V96248_INT_TRIGGERED = 0 , SIF_PI4IOE5V96248_INT_CLEARED = 1 , EXPAND13_INT_TRIGGERED = 0 , EXPAND13_INT_CLEARED = 1 }
 
enum  expand13_status { SIF_PI4IOE5V96248_ST_OK = 0 , SIF_PI4IOE5V96248_ST_FAIL = 3 , EXPAND13_ST_OK = 0 , EXPAND13_ST_FAIL = 3 }
 

Functions

void MIKROSDK_EXPAND13_pin_mapping (uint8_t reset, uint8_t irq)
 
uint8_t MIKROSDK_EXPAND13_alarm_triggered (void)
 
uint8_t MIKROSDK_EXPAND13_Initialise (void)
 
uint8_t MIKROSDK_EXPAND13_Acquire (uint8_t *port0)
 
uint8_t MIKROSDK_EXPAND13_SetOutput (uint8_t io, uint8_t val)
 
uint8_t MIKROSDK_EXPAND13_Sense (uint8_t io, uint8_t *val)
 

Detailed Description

mikrosdk interface

Macro Definition Documentation

◆ EXPAND13_ALL_PINS_MASK

#define EXPAND13_ALL_PINS_MASK   0xFF

◆ EXPAND13_I2C_ADDR

#define EXPAND13_I2C_ADDR   0x20

◆ EXPAND13_NO_PIN_MASK

#define EXPAND13_NO_PIN_MASK   0x00

◆ EXPAND13_PIN_0_MASK

#define EXPAND13_PIN_0_MASK   0x01

◆ EXPAND13_PIN_1_MASK

#define EXPAND13_PIN_1_MASK   0x02

◆ EXPAND13_PIN_2_MASK

#define EXPAND13_PIN_2_MASK   0x04

◆ EXPAND13_PIN_3_MASK

#define EXPAND13_PIN_3_MASK   0x08

◆ EXPAND13_PIN_4_MASK

#define EXPAND13_PIN_4_MASK   0x10

◆ EXPAND13_PIN_5_MASK

#define EXPAND13_PIN_5_MASK   0x20

◆ EXPAND13_PIN_6_MASK

#define EXPAND13_PIN_6_MASK   0x40

◆ EXPAND13_PIN_7_MASK

#define EXPAND13_PIN_7_MASK   0x80

◆ EXPAND13_PORT_0

#define EXPAND13_PORT_0   0x00

◆ EXPAND13_PORT_1

#define EXPAND13_PORT_1   0x01

◆ EXPAND13_PORT_2

#define EXPAND13_PORT_2   0x02

◆ EXPAND13_PORT_3

#define EXPAND13_PORT_3   0x03

◆ EXPAND13_PORT_4

#define EXPAND13_PORT_4   0x04

◆ EXPAND13_PORT_5

#define EXPAND13_PORT_5   0x05

◆ EXPAND13_T_RESET

#define EXPAND13_T_RESET   1 /* 1 ms for reset */

◆ EXPAND13_USE_INTERRUPT

#define EXPAND13_USE_INTERRUPT   1

Enumeration Type Documentation

◆ expand13_alarm_state

Enumerator
SIF_PI4IOE5V96248_INT_TRIGGERED 
SIF_PI4IOE5V96248_INT_CLEARED 
EXPAND13_INT_TRIGGERED 
EXPAND13_INT_CLEARED 

◆ expand13_status

Enumerator
SIF_PI4IOE5V96248_ST_OK 
SIF_PI4IOE5V96248_ST_FAIL 
EXPAND13_ST_OK 
EXPAND13_ST_FAIL 

Function Documentation

◆ MIKROSDK_EXPAND13_Acquire()

uint8_t MIKROSDK_EXPAND13_Acquire ( uint8_t *  port0)

◆ MIKROSDK_EXPAND13_alarm_triggered()

uint8_t MIKROSDK_EXPAND13_alarm_triggered ( void  )

◆ MIKROSDK_EXPAND13_Initialise()

uint8_t MIKROSDK_EXPAND13_Initialise ( void  )

◆ MIKROSDK_EXPAND13_pin_mapping()

void MIKROSDK_EXPAND13_pin_mapping ( uint8_t  reset,
uint8_t  irq 
)

◆ MIKROSDK_EXPAND13_Sense()

uint8_t MIKROSDK_EXPAND13_Sense ( uint8_t  io,
uint8_t *  val 
)

◆ MIKROSDK_EXPAND13_SetOutput()

uint8_t MIKROSDK_EXPAND13_SetOutput ( uint8_t  io,
uint8_t  val 
)