PER Firmware
Loading...
Searching...
No Matches
can_codec_test_shim.c File Reference
#include "can_codec_test_shim.h"
#include "can_codec.h"
Include dependency graph for can_codec_test_shim.c:

Functions

uint64_t test_CAN_apply_bswap (uint64_t raw, uint8_t bswap_width)
 
uint64_t test_CAN_load_payload_u64 (const uint8_t *data, uint8_t len)
 
void test_CAN_store_payload_u64 (uint8_t *dest, uint64_t payload, uint8_t len)
 
uint64_t test_CAN_pack_raw_signal (uint64_t payload, uint64_t raw, uint64_t mask, uint8_t bit_shift, uint8_t bswap_width)
 
uint64_t test_CAN_unpack_raw_signal (uint64_t payload, uint64_t mask, uint8_t bit_shift, uint8_t bswap_width)
 
int64_t test_CAN_sign_extend_raw (uint64_t raw, uint8_t bit_length)
 
uint64_t test_CAN_float32_to_raw (float value)
 
float test_CAN_raw_to_float32 (uint64_t raw)
 

Function Documentation

◆ test_CAN_apply_bswap()

uint64_t test_CAN_apply_bswap ( uint64_t raw,
uint8_t bswap_width )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_CAN_float32_to_raw()

uint64_t test_CAN_float32_to_raw ( float value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_CAN_load_payload_u64()

uint64_t test_CAN_load_payload_u64 ( const uint8_t * data,
uint8_t len )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_CAN_pack_raw_signal()

uint64_t test_CAN_pack_raw_signal ( uint64_t payload,
uint64_t raw,
uint64_t mask,
uint8_t bit_shift,
uint8_t bswap_width )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_CAN_raw_to_float32()

float test_CAN_raw_to_float32 ( uint64_t raw)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_CAN_sign_extend_raw()

int64_t test_CAN_sign_extend_raw ( uint64_t raw,
uint8_t bit_length )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_CAN_store_payload_u64()

void test_CAN_store_payload_u64 ( uint8_t * dest,
uint64_t payload,
uint8_t len )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_CAN_unpack_raw_signal()

uint64_t test_CAN_unpack_raw_signal ( uint64_t payload,
uint64_t mask,
uint8_t bit_shift,
uint8_t bswap_width )
Here is the call graph for this function:
Here is the caller graph for this function: