Added support for WNC M14A2A Cellular LTE Data Module.
Dependencies: WNC14A2AInterface
Dependents: http-example-wnc http-example-wnc-modified
SPIRIT_Csma.c File Reference
Configuration and management of SPIRIT CSMA. More...
Go to the source code of this file.
Functions | |
void | SpiritCsmaInit (CsmaInit *pxCsmaInit) |
Initializes the SPIRIT CSMA according to the specified parameters in the CsmaInit. | |
void | SpiritCsmaGetInfo (CsmaInit *pxCsmaInit) |
Returns the fitted structure CsmaInit starting from the registers values. | |
void | SpiritCsma (SpiritFunctionalState xNewState) |
Enables or Disables the CSMA. | |
SpiritFunctionalState | SpiritCsmaGetCsma (void) |
Gets the CSMA mode. | |
void | SpiritCsmaPersistentMode (SpiritFunctionalState xNewState) |
Enables or Disables the persistent CSMA mode. | |
SpiritFunctionalState | SpiritCsmaGetPersistentMode (void) |
Gets the persistent CSMA mode. | |
void | SpiritCsmaSeedReloadMode (SpiritFunctionalState xNewState) |
Enables or Disables the seed reload mode (if enabled it reloads the back-off generator seed using the value written in the BU_COUNTER_SEED register). | |
SpiritFunctionalState | SpiritCsmaGetSeedReloadMode (void) |
Gets the seed reload mode. | |
void | SpiritCsmaSetBuCounterSeed (uint16_t nBuCounterSeed) |
Sets the BU counter seed (BU_COUNTER_SEED register). | |
uint16_t | SpiritCsmaGetBuCounterSeed (void) |
Returns the BU counter seed (BU_COUNTER_SEED register). | |
void | SpiritCsmaSetBuPrescaler (uint8_t cBuPrescaler) |
Sets the BU prescaler. | |
uint8_t | SpiritCsmaGetBuPrescaler (void) |
Returns the BU prescaler. | |
void | SpiritCsmaSetCcaPeriod (CcaPeriod xMultiplierTbit) |
Sets the CCA period. | |
CcaPeriod | SpiritCsmaGetCcaPeriod (void) |
Returns the CCA period. | |
void | SpiritCsmaSetCcaLength (CsmaLength xCcaLength) |
Sets the CCA length. | |
uint8_t | SpiritCsmaGetCcaLength (void) |
Returns the CCA length. | |
void | SpiritCsmaSetMaxNumberBackoff (uint8_t cMaxNb) |
Sets the max number of back-off. | |
uint8_t | SpiritCsmaGetMaxNumberBackoff (void) |
Returns the max number of back-off. |
Detailed Description
Configuration and management of SPIRIT CSMA.
- Version:
- 3.2.2
- Date:
- 08-July-2015
- Attention:
© COPYRIGHT(c) 2015 STMicroelectronics
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file SPIRIT_Csma.c.
Generated on Tue Jul 12 2022 17:40:25 by 1.7.2