firmware
IEM Firmware Documentation
Loading...
Searching...
No Matches
can_1.c File Reference

CAN message packing/unpacking code generated from can_1.dbc. More...

#include "can_1.h"
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <string.h>
#include <errno.h>
Include dependency graph for can_1.c:

Functions

int can_1_safety_status_pack (uint8_t *dst_ptr, const struct can_1_safety_status *src_ptr, size_t size)
 Packs safety_status signal values from a struct of unpacked values into a uint8_t array.
int can_1_safety_status_unpack (struct can_1_safety_status *dst_ptr, const uint8_t *src_ptr, size_t size)
 Unpacks safety_status signal values from a uint8_t array into a struct of unpacked values.
int can_1_safety_sw_hard_fault_pack (uint8_t *dst_ptr, const struct can_1_safety_sw_hard_fault *src_ptr, size_t size)
 Packs safety_sw_hard_fault signal values from a struct of unpacked values into a uint8_t array.
int can_1_safety_sw_hard_fault_unpack (struct can_1_safety_sw_hard_fault *dst_ptr, const uint8_t *src_ptr, size_t size)
 Unpacks safety_sw_hard_fault signal values from a uint8_t array into a struct of unpacked values.
int can_1_fsb_laptrigger_message_pack (uint8_t *dst_ptr, const struct can_1_fsb_laptrigger_message *src_ptr, size_t size)
 Packs fsb_laptrigger_message signal values from a struct of unpacked values into a uint8_t array.
int can_1_fsb_laptrigger_message_unpack (struct can_1_fsb_laptrigger_message *dst_ptr, const uint8_t *src_ptr, size_t size)
 Unpacks fsb_laptrigger_message signal values from a uint8_t array into a struct of unpacked values.
int can_1_apps_right_pack (uint8_t *dst_ptr, const struct can_1_apps_right *src_ptr, size_t size)
 Packs apps_right signal values from a struct of unpacked values into a uint8_t array.
int can_1_apps_right_unpack (struct can_1_apps_right *dst_ptr, const uint8_t *src_ptr, size_t size)
 Unpacks apps_right signal values from a uint8_t array into a struct of unpacked values.
int can_1_apps_left_pack (uint8_t *dst_ptr, const struct can_1_apps_left *src_ptr, size_t size)
 Packs apps_left signal values from a struct of unpacked values into a uint8_t array.
int can_1_apps_left_unpack (struct can_1_apps_left *dst_ptr, const uint8_t *src_ptr, size_t size)
 Unpacks apps_left signal values from a uint8_t array into a struct of unpacked values.
int can_1_sas_data_pack (uint8_t *dst_ptr, const struct can_1_sas_data *src_ptr, size_t size)
 Packs sas_data signal values from a struct of unpacked values into a uint8_t array.
int can_1_sas_data_unpack (struct can_1_sas_data *dst_ptr, const uint8_t *src_ptr, size_t size)
 Unpacks sas_data signal values from a uint8_t array into a struct of unpacked values.
int can_1_bms_status_pack (uint8_t *dst_ptr, const struct can_1_bms_status *src_ptr, size_t size)
 Packs bms_status signal values from a struct of unpacked values into a uint8_t array.
int can_1_bms_status_unpack (struct can_1_bms_status *dst_ptr, const uint8_t *src_ptr, size_t size)
 Unpacks bms_status signal values from a uint8_t array into a struct of unpacked values.
int can_1_swb_regen_pack (uint8_t *dst_ptr, const struct can_1_swb_regen *src_ptr, size_t size)
 Packs swb_regen signal values from a struct of unpacked values into a uint8_t array.
int can_1_swb_regen_unpack (struct can_1_swb_regen *dst_ptr, const uint8_t *src_ptr, size_t size)
 Unpacks swb_regen signal values from a uint8_t array into a struct of unpacked values.
int can_1_swb_switches_pack (uint8_t *dst_ptr, const struct can_1_swb_switches *src_ptr, size_t size)
 Packs swb_switches signal values from a struct of unpacked values into a uint8_t array.
int can_1_swb_switches_unpack (struct can_1_swb_switches *dst_ptr, const uint8_t *src_ptr, size_t size)
 Unpacks swb_switches signal values from a uint8_t array into a struct of unpacked values.
int can_1_fsb_aux_switches_pack (uint8_t *dst_ptr, const struct can_1_fsb_aux_switches *src_ptr, size_t size)
 Packs fsb_aux_switches signal values from a struct of unpacked values into a uint8_t array.
int can_1_fsb_aux_switches_unpack (struct can_1_fsb_aux_switches *dst_ptr, const uint8_t *src_ptr, size_t size)
 Unpacks fsb_aux_switches signal values from a uint8_t array into a struct of unpacked values.
int can_1_cpu_bms_viewer_poll_pack (uint8_t *dst_ptr, const struct can_1_cpu_bms_viewer_poll *src_ptr, size_t size)
 Packs cpu_bms_viewer_poll signal values from a struct of unpacked values into a uint8_t array.
int can_1_cpu_bms_viewer_poll_unpack (struct can_1_cpu_bms_viewer_poll *dst_ptr, const uint8_t *src_ptr, size_t size)
 Unpacks cpu_bms_viewer_poll signal values from a uint8_t array into a struct of unpacked values.
int can_1_safety_pump_duty_pack (uint8_t *dst_ptr, const struct can_1_safety_pump_duty *src_ptr, size_t size)
 Packs safety_pump_duty signal values from a struct of unpacked values into a uint8_t array.
int can_1_safety_pump_duty_unpack (struct can_1_safety_pump_duty *dst_ptr, const uint8_t *src_ptr, size_t size)
 Unpacks safety_pump_duty signal values from a uint8_t array into a struct of unpacked values.
int can_1_bms_cell_data_pack (uint8_t *dst_ptr, const struct can_1_bms_cell_data *src_ptr, size_t size)
 Packs bms_cell_data signal values from a struct of unpacked values into a uint8_t array.
int can_1_bms_cell_data_unpack (struct can_1_bms_cell_data *dst_ptr, const uint8_t *src_ptr, size_t size)
 Unpacks bms_cell_data signal values from a uint8_t array into a struct of unpacked values.
int can_1_safety_tractive_status_pack (uint8_t *dst_ptr, const struct can_1_safety_tractive_status *src_ptr, size_t size)
 Packs safety_tractive_status signal values from a struct of unpacked values into a uint8_t array.
int can_1_safety_tractive_status_unpack (struct can_1_safety_tractive_status *dst_ptr, const uint8_t *src_ptr, size_t size)
 Unpacks safety_tractive_status signal values from a uint8_t array into a struct of unpacked values.
int can_1_bms_cell_vlt_pack (uint8_t *dst_ptr, const struct can_1_bms_cell_vlt *src_ptr, size_t size)
 Packs bms_cell_vlt signal values from a struct of unpacked values into a uint8_t array.
int can_1_bms_cell_vlt_unpack (struct can_1_bms_cell_vlt *dst_ptr, const uint8_t *src_ptr, size_t size)
 Unpacks bms_cell_vlt signal values from a uint8_t array into a struct of unpacked values.
int can_1_bms_cell_temp_pack (uint8_t *dst_ptr, const struct can_1_bms_cell_temp *src_ptr, size_t size)
 Packs bms_cell_temp signal values from a struct of unpacked values into a uint8_t array.
int can_1_bms_cell_temp_unpack (struct can_1_bms_cell_temp *dst_ptr, const uint8_t *src_ptr, size_t size)
 Unpacks bms_cell_temp signal values from a uint8_t array into a struct of unpacked values.
int can_1_fsb_status_pack (uint8_t *dst_ptr, const struct can_1_fsb_status *src_ptr, size_t size)
 Packs fsb_status signal values from a struct of unpacked values into a uint8_t array.
int can_1_fsb_status_unpack (struct can_1_fsb_status *dst_ptr, const uint8_t *src_ptr, size_t size)
 Unpacks fsb_status signal values from a uint8_t array into a struct of unpacked values.
int can_1_rsb_status_pack (uint8_t *dst_ptr, const struct can_1_rsb_status *src_ptr, size_t size)
 Packs rsb_status signal values from a struct of unpacked values into a uint8_t array.
int can_1_rsb_status_unpack (struct can_1_rsb_status *dst_ptr, const uint8_t *src_ptr, size_t size)
 Unpacks rsb_status signal values from a uint8_t array into a struct of unpacked values.

Detailed Description

CAN message packing/unpacking code generated from can_1.dbc.

Author
IEM can_codec library
Date
2025-08-18