rfswitch 2.0.0.0
|
This file contains API for RF Switch Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | rfswitch_t |
RF Switch Click context object. More... | |
struct | rfswitch_cfg_t |
RF Switch Click configuration object. More... | |
Macros | |
#define | RFSWITCH_ON_PIN_STATE_HIGH 0x01 |
RF Switch description setting. | |
#define | RFSWITCH_ON_PIN_STATE_LOW 0x00 |
#define | RFSWITCH_SEL_PIN_STATE_HIGH 0x01 |
#define | RFSWITCH_SEL_PIN_STATE_LOW 0x00 |
#define | RFSWITCH_SELECT_CHANNEL_1 0x01 |
#define | RFSWITCH_SELECT_CHANNEL_2 0x02 |
#define | RFSWITCH_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | rfswitch_return_value_t { RFSWITCH_OK = 0 , RFSWITCH_ERROR = -1 } |
RF Switch Click return value data. More... | |
Functions | |
void | rfswitch_cfg_setup (rfswitch_cfg_t *cfg) |
RF Switch configuration object setup function. | |
err_t | rfswitch_init (rfswitch_t *ctx, rfswitch_cfg_t *cfg) |
RF Switch initialization function. | |
void | rfswitch_power_on (rfswitch_t *ctx) |
RF Switch power on function. | |
void | rfswitch_on_pin_set (rfswitch_t *ctx, uint8_t enable) |
RF Switch ON pin setting function. | |
void | rfswitch_sel_pin_set (rfswitch_t *ctx, uint8_t enable) |
RF Switch SEL pin setting function. | |
void | rfswitch_switch_channel (rfswitch_t *ctx) |
RF Switch switch channel function. | |
void | rfswitch_select_channel (rfswitch_t *ctx, uint8_t select_channel) |
RF Switch select channel function. | |
This file contains API for RF Switch Click Driver.