|
static STD_RETURN_TYPE_e | CANS_PeriodicTransmit (void) |
|
static STD_RETURN_TYPE_e | CANS_PeriodicReceive (void) |
|
static void | CANS_SetSignalData (CANS_signal_s signal, uint64_t value, uint8_t *dataPtr) |
|
static void | CANS_GetSignalData (uint64_t *dst, CANS_signal_s signal, uint8_t *dataPtr) |
|
static void | CANS_ComposeMessage (CAN_NodeTypeDef_e canNode, CANS_messagesTx_e msgIdx, uint8_t dataptr[]) |
|
static void | CANS_ParseMessage (CAN_NodeTypeDef_e canNode, CANS_messagesRx_e msgIdx, uint8_t dataptr[]) |
| parses signal data from message associated with this msgIdx More...
|
|
static uint8_t | CANS_CheckCanTiming (void) |
| Checks if the CAN messages come in the specified time window. More...
|
|
static void | CANS_SetCurrentSensorPresent (uint8_t command) |
| set flag for presence of current sensor. More...
|
|
static void | CANS_SetCurrentSensorCCPresent (uint8_t command) |
| set flag for sending of C-C by current sensor. More...
|
|
void | CANS_Init (void) |
|
void | CANS_MainFunction (void) |
|
STD_RETURN_TYPE_e | CANS_AddMessage (CAN_NodeTypeDef_e canNode, uint32_t msgID, uint8_t *ptrMsgData, uint32_t msgLength, uint32_t RTR) |
| Add message to transmit buffer, message will be transmitted shortly after. More...
|
|
STD_RETURN_TYPE_e | CANS_TransmitBuffer (CAN_NodeTypeDef_e canNode) |
| Transmits canNode transmit buffer. More...
|
|
STD_RETURN_TYPE_e | CANS_TransmitMessage (CAN_NodeTypeDef_e canNode, uint32_t msgID, uint8_t *ptrMsgData, uint32_t msgLength, uint32_t RTR) |
| Transmits message directly on the CAN bus. More...
|
|
static uint64_t | CANS_GetBitmask (uint8_t bitlength) |
| generates bitfield, which masks the bits where the actual signal (defined by its bitlength) is located More...
|
|
void | CANS_Enable_Periodic (uint8_t command) |
| enable/disable the periodic transmit/receive. More...
|
|
uint8_t | CANS_IsCurrentSensorPresent (void) |
| set flag for presence of current sensor. More...
|
|
uint8_t | CANS_IsCurrentSensorCCPresent (void) |
| set flag for sending of C-C by current sensor. More...
|
|
Messages and signal settings for the CAN driver.
- Copyright
- © 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. All rights reserved.
BSD 3-Clause License 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 the copyright holder 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.
We kindly request you to use one or more of the following phrases to refer to foxBMS in your hardware, software, documentation or advertising materials:
″This product uses parts of foxBMS®″
″This product includes parts of foxBMS®″
″This product is derived from foxBMS®″
- Author
- foxBMS Team
- Date
- 01.10.2015 (date of creation)
- Module-prefix CANS
generic conversion module of Can signals from CAN buffered reception to DATA Manager and vice versa