We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2020-07-08
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Port expander
Downloaded: 2108 times
Not followed.
License: MIT license
RF Switch is a Click board equipped with the MASWSS0115, a GaAs PHEMT MMIC single-pole, double-throw (SPDT) switch developed by Macom for switching between small signal components such as filter banks, single-band LNAs, converters, etc. The MASWSS0115 is ideally suited for applications where a very small size and low cost are required.
Do you want to subscribe in order to receive notifications regarding "RF Switch click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "RF Switch click" changes.
Do you want to report abuse regarding "RF Switch click".
Library Description
The library covers all the necessary functions to control RF Switch Click board. The library contains a function which switching signal between RF Channel 1 and 2.
Key functions:
void rfswitch_set_mode ( uint8_t enable )
- Set Power mode state.void rfswitch_sel_state ( uint8_t sel_state )
- Set SEL pin state.void rfswitch_select_channel ( uint8_t select_channel )
- Select RF channel.Examples description
The application is composed of three sections :
void application_task ( )
{
mikrobus_logWrite( " Switch to RF Port 1 ", _LOG_LINE );
mikrobus_logWrite( "-----------------------", _LOG_LINE );
rfswitch_select_channel( RFSWITCH_SELECT_CHANNEL_1 );
Delay_ms( 5000 );
mikrobus_logWrite( " Switch to RF Port 2 ", _LOG_LINE );
mikrobus_logWrite( "-----------------------", _LOG_LINE );
rfswitch_select_channel( RFSWITCH_SELECT_CHANNEL_2 );
Delay_ms( 5000 );
}
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.