Added support for the WNC M14A2A Cellular LTE Data Module.
Dependencies: WNC14A2AInterface
SPIRIT_PktStack.c File Reference
Configuration and management of SPIRIT STack packets. More...
Go to the source code of this file.
Functions | |
void | SpiritPktStackInit (PktStackInit *pxPktStackInit) |
Initializes the SPIRIT STack packet according to the specified parameters in the PktStackInit. | |
void | SpiritPktStackGetInfo (PktStackInit *pxPktStackInit) |
Returns the SPIRIT STack packet structure according to the specified parameters in the registers. | |
void | SpiritPktStackAddressesInit (PktStackAddressesInit *pxPktStackAddresses) |
Initializes the SPIRIT STack packet addresses according to the specified parameters in the PktStackAddresses struct. | |
void | SpiritPktStackGetAddressesInfo (PktStackAddressesInit *pxPktStackAddresses) |
Returns the SPIRIT STack packet addresses structure according to the specified parameters in the registers. | |
void | SpiritPktStackLlpInit (PktStackLlpInit *pxPktStackLlpInit) |
Initializes the SPIRIT STack packet LLP options according to the specified parameters in the PktStackLlpInit struct. | |
void | SpiritPktStackLlpGetInfo (PktStackLlpInit *pxPktStackLlpInit) |
Returns the SPIRIT STack packet LLP options according to the specified values in the registers. | |
void | SpiritPktStackSetFormat (void) |
Configures the STack packet format for SPIRIT. | |
void | SpiritPktStackSetAddressLength (void) |
Sets the address length for SPIRIT STack packets (always 2). | |
void | SpiritPktStackSetPayloadLength (uint16_t nPayloadLength) |
Sets the payload length for SPIRIT STack packets. | |
uint16_t | SpiritPktStackGetPayloadLength (void) |
Returns the payload length for SPIRIT STack packets. | |
void | SpiritPktStackSetVarLengthWidth (uint16_t nMaxPayloadLength, StackControlLength xControlLength) |
Computes and sets the variable payload length for SPIRIT STack packets. | |
void | SpiritPktStackSetRxSourceMask (uint8_t cMask) |
Rx packet source mask. | |
uint8_t | SpiritPktStackGetRxSourceMask (void) |
Returns the Rx packet source mask. | |
uint16_t | SpiritPktStackGetReceivedPktLength (void) |
Returns the packet length field of the received packet. | |
void | SpiritPktStackFilterOnSourceAddress (SpiritFunctionalState xNewState) |
If enabled RX packet is accepted only if the masked source address field matches the masked source address field reference (SOURCE_MASK & SOURCE_FIELD_REF == SOURCE_MASK & RX_SOURCE_FIELD). |
Detailed Description
Configuration and management of SPIRIT STack packets.
- 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_PktStack.c.
Generated on Tue Jul 12 2022 19:09:04 by 1.7.2