Include file for hsrPrp_red.c.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
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.
Neither the name of Texas Instruments Incorporated 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 OWNER 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.
Go to the source code of this file.
Macros | |
#define | RED_MANUFACTURER "Texas Instruments" |
#define | RED_VERSION_NAME "1.0.4.0553" |
#define | RED_NODE_NAME "TI" |
#define | RED_RX_FRAME_BYTE_CNT_MIN ( 64 ) |
#define | RED_RX_FRAME_BYTE_CNT_MAX ( 1528 ) |
#define | VLAN_TAG_TPID_BIG_ENDIAN ( 0x0081 ) |
#define | VLAN_TAG_SIZE ( 4 ) |
Functions | |
void | RedProtocolInit (void) |
Assigns key function pointers based on macro. More... | |
void | RedNodeTableClear (hsrPrpHandle *hsrPrphandle) |
Sets Clear Node Table flag to be used by PRU. More... | |
void | RedIncrementCounter (uint32_t offset, PRUICSS_Handle pruicssHandle) |
Increments statistics counter. More... | |
void | RedSupFrameUpdateTlv (hsrPrpHandle *hsrPrphandle, uint8_t type) |
int32_t | RedTxPacket (void *icssEmachandle, ICSS_EMAC_TxArgument *txArg, void *userArg) |
Enqueues redundancy frames to transmit. More... | |
int32_t | RedRxPktGet (void *icssEmachandle, ICSS_EMAC_RxArgument *rxVoidArg, void *userArg) |
Copies data from L3 receive queues. More... | |
RED_STATUS | RedLifeCheckTaskCreate (hsrPrpHandle *hsrPrphandle, PRUICSS_Handle pruicssHandle) |
Function to create RED Supervision task. More... | |
void | RedLifeCheckTaskDelete (hsrPrpHandle *hsrPrphandle) |
Function to delete RED Supervision task. More... | |
RED_STATUS | RedProtocolStart (hsrPrpHandle *hsrPrphandle, PRUICSS_Handle pruicssHandle) |
Function to start RedProtocolStart. More... | |
void | RedProtocolConfigure (PRUICSS_Handle pruicssHandle) |
Configure IEP to modify max frame size (to acccount for LRE header) More... | |
void | RedProtocolStop (hsrPrpHandle *hsrPrphandle, PRUICSS_Handle pruicssHandle) |
Delete Node Table check Task. More... | |