Data Structures | |
class | GPIOWiced |
WiCED gpio wrapper. More... | |
class | SPICWiced |
Wiced SPIC class. More... | |
class | TimerWiced |
WiCED timer wrapper. More... | |
class GPIOWiced |
WiCED gpio wrapper.
Public Types | |
Interrupt event | |
enum | IntEvent_t { INT_FALLING_EDGE = 0 , INT_RISING_EDGE = 1 } |
Voltage level | |
enum | VLevel_t { GPIO_LOW = 0 , GPIO_HIGH = 1 } |
Voltage logic | |
enum | VLogic_t { NEGATIVE = 1 , POSITIVE = 2 } |
Public Member Functions | |
GPIOWiced (wiced_gpio_t pin, wiced_gpio_config_t config, VLogic_t logic) | |
GPIO WICED default constructor. More... | |
~GPIOWiced () | |
GPIO WICED destructor. More... | |
Error_t | init () |
Initializes the WICED GPIO. More... | |
Error_t | deinit () |
Initializes the WICED GPIO. More... | |
VLevel_t | read () |
Reads the WICED GPIO voltage level. More... | |
Error_t | write (VLevel_t level) |
Writes the WICED GPIO output voltage level. More... | |
Error_t | enable () |
Enables the WICED output according to the GPIO logic. More... | |
Error_t | disable () |
Disables the WICED output according to the GPIO logic. More... | |
Error_t | checkErrorStatus () |
|
inherited |
|
inherited |
|
inherited |
GPIOWiced::GPIOWiced | ( | wiced_gpio_t | pin, |
wiced_gpio_config_t | config, | ||
VLogic_t | logic | ||
) |
GPIO WICED default constructor.
GPIOWiced::~GPIOWiced | ( | ) |
GPIO WICED destructor.
|
inlinevirtual |
Initializes the WICED GPIO.
OK | if success |
INTF_ERROR | if initialization error |
Implements tle94112::GPIOC.
|
inlinevirtual |
Initializes the WICED GPIO.
OK | if success |
INTF_ERROR | if deinitialization error |
Implements tle94112::GPIOC.
|
inlinevirtual |
Reads the WICED GPIO voltage level.
GPIO_LOW | if voltage low |
GPIO_HIGH | if voltage high |
Implements tle94112::GPIOC.
Writes the WICED GPIO output voltage level.
[in] | level | Voltage level |
OK | if success |
INTF_ERROR | if error |
Implements tle94112::GPIOC.
|
inlinevirtual |
Enables the WICED output according to the GPIO logic.
OK | if success |
INTF_ERROR | if error |
Implements tle94112::GPIOC.
|
inlinevirtual |
Disables the WICED output according to the GPIO logic.
OK | if success |
INTF_ERROR | if error |
Implements tle94112::GPIOC.
|
inherited |
class SPICWiced |
Wiced SPIC class.
Public Member Functions | |
SPICWiced () | |
Constructor of the WICED SPIC class. More... | |
SPICWiced (wiced_spi_t port, wiced_gpio_t csPin) | |
Construct a new SPICWiced::SPICWiced object. More... | |
SPICWiced (wiced_spi_t port, wiced_gpio_t csPin, uint8_t speed, uint8_t mode, uint8_t bits) | |
Construct a new SPICWiced::SPICWiced object. More... | |
~SPICWiced () | |
Destructor of the WICED SPIC class. More... | |
Error_t | init () |
Initialize the SPIC. More... | |
Error_t | deinit () |
Deinitialize the SPIC. More... | |
Error_t | transfer (uint8_t send, uint8_t &received) |
transfers a data package via the spi bus More... | |
Error_t | transfer16 (uint16_t send, uint16_t &received) |
transfers a data package via the spi bus More... | |
Error_t | checkErrorStatus () |
SPICWiced::SPICWiced | ( | ) |
Constructor of the WICED SPIC class.
This function is setting the basics for a SPIC and the default spi on Arduino which is implemented as WICED_SPI_0 by patching the following:
SPICWiced::SPICWiced | ( | wiced_spi_t | port, |
wiced_gpio_t | csPin | ||
) |
Construct a new SPICWiced::SPICWiced object.
This function is setting the basics for a SPIC. It allows to set the SPI channel and the used GPIOs if they are different from the standard GPIOs.
port | SPI channel to be used |
csPin | Number of the desired ChipSelect pin |
SPICWiced::SPICWiced | ( | wiced_spi_t | port, |
wiced_gpio_t | csPin, | ||
uint8_t | speed, | ||
uint8_t | mode, | ||
uint8_t | bits | ||
) |
Construct a new SPICWiced::SPICWiced object.
This function allows to set all parameters of the SPI master.
port | SPI channel to be used |
csPin | Number of the desired ChipSelect pin |
speed | SPI baud setting |
mode | SPI mode setting |
bits | number of bits in one command |
SPICWiced::~SPICWiced | ( | ) |
Destructor of the WICED SPIC class.
|
virtual |
Initialize the SPIC.
This function is initializing the chosen spi channel with the given values for lsb,clock and mode
Implements tle94112::SPIC.
|
virtual |
Deinitialize the SPIC.
This function is deinitializing the chosen spi channel.
Implements tle94112::SPIC.
|
virtual |
transfers a data package via the spi bus
send | address and/or command to send |
received | received data from spi bus |
Implements tle94112::SPIC.
|
virtual |
transfers a data package via the spi bus
send | address and/or command to send as 16bit |
received | received data from spi bus as 16bit |
Implements tle94112::SPIC.
|
inherited |
class TimerWiced |
WiCED timer wrapper.
Public Member Functions | |
TimerWiced () | |
Constructor of the WICED Timer class. More... | |
~TimerWiced () | |
Destructor of the WICED Timer class. More... | |
Error_t | init () |
Initialization of the Timer. More... | |
Error_t | deinit () |
Deinitialize the Timer. More... | |
Error_t | start () |
Start the timer. More... | |
Error_t | elapsed (wiced_time_t &elapsed) |
Calculate the elapsed time. More... | |
Error_t | stop () |
Stop the timer. More... | |
Error_t | delayMilli (uint32_t timeout) |
Time delay. More... | |
Error_t | delayMicro (uint32_t timeout) |
Time delay. More... | |
virtual Error_t | elapsed (uint32_t &elapsed)=0 |
Elapsed time since the timer was started. More... | |
TimerWiced::TimerWiced | ( | ) |
Constructor of the WICED Timer class.
TimerWiced::~TimerWiced | ( | ) |
Destructor of the WICED Timer class.
|
virtual |
Initialization of the Timer.
This function is initializing the Timer and sets the elapsed time to zero.
Implements tle94112::Timer.
|
virtual |
Deinitialize the Timer.
This function deinitialize the Timer and also resets the elapsed time variable.
Implements tle94112::Timer.
|
virtual |
Error_t TimerWiced::elapsed | ( | wiced_time_t & | elapsed | ) |
Calculate the elapsed time.
This function is calculating the elapsed time since the start of the timer. The value stored in the given variable is in milliseconds.
[in] | &elapsed | Address of a value where the elapsed time should be stored |
|
virtual |
Stop the timer.
This function stops the timer and resets the start time variable.
Implements tle94112::Timer.
|
virtual |
Time delay.
This function is causing a desired delay of the application. The input value is given in milliseconds.
[in] | timeout | Desired timeout in ms |
Implements tle94112::Timer.
|
virtual |
Time delay.
This function is causing a desired delay of the application. The input value is given in microseconds.
[in] | timeout | Desired timeout in us |
Implements tle94112::Timer.
|
pure virtualinherited |