#include <stdint.h>
#include "sensor.h"
Go to the source code of this file.
|
int | get_boot1_complete_bit (uint8_t bus, uint8_t addr, uint8_t *bit) |
|
void | clear_freya_cache_flag (uint8_t card_id) |
|
void | clear_accl_cable_power_fault_flag () |
|
int | get_freya_fw_info (uint8_t bus, uint8_t addr, freya_fw_info *fw_info) |
|
bool | is_sw_ready (uint8_t sensor_num) |
|
void | init_sw_heartbeat_work () |
|
void | clear_sw_error_check_flag () |
|
void | get_switch_error_status (uint8_t sensor_num, uint8_t bus, uint8_t addr, uint8_t index) |
|
bool | init_vr_write_protect (uint8_t bus, uint8_t addr, uint8_t default_val) |
|
int | atm_fw_update (uint8_t bus, uint8_t addr, uint32_t offset, uint8_t *msg_buf, uint16_t buf_len, uint32_t image_size, bool is_end_package) |
|
void | init_clk_gen_spread_spectrum_control_register () |
|
◆ CLOCK_GEN_ADDR
#define CLOCK_GEN_ADDR (0xD0 >> 1) |
◆ FREYA_FFI_LENGTH
#define FREYA_FFI_LENGTH 1 |
◆ FREYA_FFI_OFFSET
#define FREYA_FFI_OFFSET 0x2B |
◆ FREYA_FIRMWARE_VERSION_BLOCK_LENGTH
#define FREYA_FIRMWARE_VERSION_BLOCK_LENGTH 0x08 |
◆ FREYA_FIRMWARE_VERSION_BLOCK_OFFSET
#define FREYA_FIRMWARE_VERSION_BLOCK_OFFSET 0x68 |
◆ FREYA_FIRMWARE_VERSION_LENGTH
#define FREYA_FIRMWARE_VERSION_LENGTH 5 |
◆ FREYA_FIRMWARE_VERSION_OFFSET
#define FREYA_FIRMWARE_VERSION_OFFSET 0x02 |
◆ FREYA_MODULE_IDENTIFIER_BLOCK_LENGTH
#define FREYA_MODULE_IDENTIFIER_BLOCK_LENGTH 0x37 |
◆ FREYA_MODULE_IDENTIFIER_BLOCK_OFFSET
#define FREYA_MODULE_IDENTIFIER_BLOCK_OFFSET 0x20 |
◆ FREYA_MODULE_IDENTIFIER_LENGTH
#define FREYA_MODULE_IDENTIFIER_LENGTH 1 |
◆ FREYA_MODULE_IDENTIFIER_OFFSET
#define FREYA_MODULE_IDENTIFIER_OFFSET 0x01 |
◆ FREYA_NOT_READY_RET_CODE
#define FREYA_NOT_READY_RET_CODE -2 |
◆ FREYA_NOT_SUPPORT_MODULE_IDENTIFIER_RET_CODE
#define FREYA_NOT_SUPPORT_MODULE_IDENTIFIER_RET_CODE -3 |
◆ FREYA_READY_STATUS_BIT
#define FREYA_READY_STATUS_BIT BIT(6) |
◆ FREYA_READY_STATUS_LENGTH
#define FREYA_READY_STATUS_LENGTH 1 |
◆ FREYA_READY_STATUS_OFFSET
#define FREYA_READY_STATUS_OFFSET 0x01 |
◆ FREYA_STATUS_BLOCK_LENGTH
#define FREYA_STATUS_BLOCK_LENGTH 0x08 |
◆ FREYA_STATUS_BLOCK_OFFSET
#define FREYA_STATUS_BLOCK_OFFSET 0x00 |
◆ IS_FREYA_MODULE_IDENTIFIER_SUPPORT
#define IS_FREYA_MODULE_IDENTIFIER_SUPPORT 0x01 |
◆ NVME_TEMPERATURE_INDEX
#define NVME_TEMPERATURE_INDEX 3 |
◆ UNKNOWN_TYPE
#define UNKNOWN_TYPE 0xFF |
◆ WAIT_FIRMWARE_READY_DELAY_S
#define WAIT_FIRMWARE_READY_DELAY_S 1 |
◆ freya_fw_info
◆ freya_info
◆ switch_error_check_info
◆ vr_fw_info
◆ wait_fw_update_status_info
◆ ATM_EXEC_RESULT
Enumerator |
---|
EXEC_RESULT_PASS | |
EXEC_RESULT_ABORTED | |
EXEC_RESULT_FAIL | |
EXEC_RESULT_DEFAULT | |
◆ ATM_EXEC_STATUS
Enumerator |
---|
EXEC_STATUS_IDLE | |
EXEC_STATUS_RUNNING | |
EXEC_STATUS_COMPLETE | |
EXEC_STATUS_TIMEOUT | |
EXEC_STATUS_DEFAULT | |
◆ FREYA_ID
Enumerator |
---|
FREYA_ID1 | |
FREYA_ID2 | |
◆ atm_fw_update()
int atm_fw_update |
( |
uint8_t |
bus, |
|
|
uint8_t |
addr, |
|
|
uint32_t |
offset, |
|
|
uint8_t * |
msg_buf, |
|
|
uint16_t |
buf_len, |
|
|
uint32_t |
image_size, |
|
|
bool |
is_end_package |
|
) |
| |
◆ clear_accl_cable_power_fault_flag()
void clear_accl_cable_power_fault_flag |
( |
| ) |
|
◆ clear_freya_cache_flag()
void clear_freya_cache_flag |
( |
uint8_t |
card_id | ) |
|
◆ clear_sw_error_check_flag()
void clear_sw_error_check_flag |
( |
| ) |
|
◆ get_boot1_complete_bit()
int get_boot1_complete_bit |
( |
uint8_t |
bus, |
|
|
uint8_t |
addr, |
|
|
uint8_t * |
bit |
|
) |
| |
◆ get_freya_fw_info()
int get_freya_fw_info |
( |
uint8_t |
bus, |
|
|
uint8_t |
addr, |
|
|
freya_fw_info * |
fw_info |
|
) |
| |
◆ get_switch_error_status()
void get_switch_error_status |
( |
uint8_t |
sensor_num, |
|
|
uint8_t |
bus, |
|
|
uint8_t |
addr, |
|
|
uint8_t |
index |
|
) |
| |
◆ init_clk_gen_spread_spectrum_control_register()
void init_clk_gen_spread_spectrum_control_register |
( |
| ) |
|
◆ init_sw_heartbeat_work()
void init_sw_heartbeat_work |
( |
| ) |
|
◆ init_vr_write_protect()
bool init_vr_write_protect |
( |
uint8_t |
bus, |
|
|
uint8_t |
addr, |
|
|
uint8_t |
default_val |
|
) |
| |
◆ is_sw_ready()
bool is_sw_ready |
( |
uint8_t |
sensor_num | ) |
|
◆ accl_freya_info
◆ atm_wait_fw_info
◆ cb_vr_fw_info
◆ sw_error_check_info