Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
#include <stdio.h>
#include <stdlib.h>
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-bm/cascoda_sensorif.h"
#include "cascoda-bm/cascoda_types.h"
#include "cascoda-bm/cascoda_wait.h"
#include "cascoda-util/cascoda_time.h"
#include "ca821x_api.h"
#include "sif_pi4ioe5v6408.h"
Functions | |
bool | SIF_PI4IOE5V6408_IsInterruptActive (void) |
Device initialisation. More... | |
uint8_t | SIF_PI4IOE5V6408_Initialise (void) |
Device initialisation. More... | |
uint8_t | SIF_PI4IOE5V6408_ReadDeviceId (uint8_t *chip_id, uint8_t *rev_id) |
Read chip id and revision id. More... | |
uint8_t | SIF_PI4IOE5V6408_SenseInput (uint8_t io, uint8_t *val) |
sense specific input More... | |
uint8_t | SIF_PI4IOE5V6408_SenseOutput (uint8_t io, uint8_t *val) |
sense specific output More... | |
uint8_t | SIF_PI4IOE5V6408_SenseAllInputs (uint8_t *port) |
sense all inputs (0-7) for port More... | |
uint8_t | SIF_PI4IOE5V6408_SetOutput (uint8_t io, uint8_t val) |
set specific output More... | |
uint8_t | SIF_PI4IOE5V6408_ConfigureInput (uint8_t io, uint8_t irq_on, uint8_t pullup_on) |
configure input More... | |
uint8_t | SIF_PI4IOE5V6408_ConfigureOutput (uint8_t io) |
configure output More... | |
Variables | |
uint8_t | SIF_PI4IOE5V6408_HasInterrupt = 0 |
uint8_t SIF_PI4IOE5V6408_ConfigureInput | ( | uint8_t | io, |
uint8_t | irq_on, | ||
uint8_t | pullup_on | ||
) |
configure input
io | - port bit number (0-7) |
irq_on | - irq enabled when (1) |
pullup_on | - pull-up enabled when (1) |
uint8_t SIF_PI4IOE5V6408_ConfigureOutput | ( | uint8_t | io | ) |
configure output
io | - port bit number (0-7) |
uint8_t SIF_PI4IOE5V6408_Initialise | ( | void | ) |
Device initialisation.
bool SIF_PI4IOE5V6408_IsInterruptActive | ( | void | ) |
Device initialisation.
uint8_t SIF_PI4IOE5V6408_ReadDeviceId | ( | uint8_t * | chip_id, |
uint8_t * | rev_id | ||
) |
Read chip id and revision id.
chip_id | - device id code |
rev_id | - firmware revision |
uint8_t SIF_PI4IOE5V6408_SenseAllInputs | ( | uint8_t * | port | ) |
sense all inputs (0-7) for port
port | - returned i/o states |
uint8_t SIF_PI4IOE5V6408_SenseInput | ( | uint8_t | io, |
uint8_t * | val | ||
) |
sense specific input
io | - port bit number (0-7) |
val | - returned i/o state |
uint8_t SIF_PI4IOE5V6408_SenseOutput | ( | uint8_t | io, |
uint8_t * | val | ||
) |
sense specific output
io | - port bit number (0-7) |
val | - returned i/o state |
uint8_t SIF_PI4IOE5V6408_SetOutput | ( | uint8_t | io, |
uint8_t | val | ||
) |
set specific output
io | - port bit number (0-7) |
val | - i/o state |
uint8_t SIF_PI4IOE5V6408_HasInterrupt = 0 |