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

mikrosdk interface More...

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

Go to the source code of this file.

Enumerations

enum  relay_state { RELAY_OFF = 0 , RELAY_ON = 1 }
 
enum  relay_status { RELAY_ST_OK = 0 , RELAY_ST_FAIL = 1 }
 

Functions

void MIKROSDK_RELAY_set_state (uint8_t num, uint8_t state)
 
void MIKROSDK_RELAY_pin_mapping (uint8_t r1, uint8_t r2)
 
uint8_t MIKROSDK_RELAY_Initialise (void)
 
uint8_t MIKROSDK_RELAY_Driver (uint8_t relay_1_state, uint8_t relay_2_state)
 

Detailed Description

mikrosdk interface

Enumeration Type Documentation

◆ relay_state

Enumerator
RELAY_OFF 
RELAY_ON 

◆ relay_status

Enumerator
RELAY_ST_OK 
RELAY_ST_FAIL 

Function Documentation

◆ MIKROSDK_RELAY_Driver()

uint8_t MIKROSDK_RELAY_Driver ( uint8_t  relay_1_state,
uint8_t  relay_2_state 
)

◆ MIKROSDK_RELAY_Initialise()

uint8_t MIKROSDK_RELAY_Initialise ( void  )

◆ MIKROSDK_RELAY_pin_mapping()

void MIKROSDK_RELAY_pin_mapping ( uint8_t  r1,
uint8_t  r2 
)

◆ MIKROSDK_RELAY_set_state()

void MIKROSDK_RELAY_set_state ( uint8_t  num,
uint8_t  state 
)