Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: rover_car rover_pc supervisor watering_unit ... more
implementation of the internal functions for mananing the protocol More...
Go to the source code of this file.
Functions | |
| bool | ssWi_init (ssWiChannel *c, int rateTX, int rateRX) | 
| Initialize the ssWi protocol.   | |
| bool | ssWi_isActive (PortID port) | 
| check if the communication port is open   | |
| bool | ssWi_setPort (PortID port) | 
| open the specified port   | |
| bool | ssWi_unsetPort (PortID port) | 
| free the specified port   | |
Variables | |
| ssWiChannel * | channel = NULL | 
| channel abstraction   | |
| Mutex | mutexChannel | 
| serialize read and write operations   | |
| std::map< int, ssWiPort > | ports | 
| set of registered communication ports   | |
| int | TXRate | 
| transmission rate   | |
| int | RXRate | 
| reading rate   | |
Detailed Description
implementation of the internal functions for mananing the protocol
Definition in file ssWi.cpp.
Function Documentation
| bool ssWi_init | ( | ssWiChannel * | c, | 
| int | rateTX, | ||
| int | rateRX | ||
| ) | 
Initialize the ssWi protocol.
It is not possible to have two instances of this protocol at the same time.
- Parameters:
 - 
  
c channel to be used for sending/receving data rateTX transmission rate (how many time every second) rateRX receiving rate (how many time every second)  
- Returns:
 - true if the network has been correctly initialized, false otherwise
 
- Warning:
 - rx should be at least twice more frequent than tx (rateRX >= 2*rateTX)
 
| bool ssWi_isActive | ( | PortID | port ) | 
| bool ssWi_setPort | ( | PortID | port ) | 
| bool ssWi_unsetPort | ( | PortID | port ) | 
Variable Documentation
| ssWiChannel* channel = NULL | 
| Mutex mutexChannel | 
Generated on Tue Jul 12 2022 15:15:30 by
 1.7.2