diff --git a/a__box_2bmi_2bmi088_8h.html b/a__box_2bmi_2bmi088_8h.html index 8d5246ca..4c5c7bfd 100644 --- a/a__box_2bmi_2bmi088_8h.html +++ b/a__box_2bmi_2bmi088_8h.html @@ -126,9 +126,9 @@
#define BMI088_GYRO_BANDWIDTH_ADDR (0x10U) /* Gyro data bandwidth address */ | +#define BMI088_GYRO_BANDWIDTH_ADDR (0x10U) /* Gyro data bandwidth address */ |
#define BMI088_GYRO_RANGE_ADDR (0x0FU) /* Gyro data range address */ | +#define BMI088_GYRO_RANGE_ADDR (0x0FU) /* Gyro data range address */ |
Functions | |
int | verifyPEC (uint8_t *data, uint16_t len, uint16_t PEC) |
int | verifyPEC (uint8_t *data, uint16_t len, uint16_t PEC) |
void | checkConn (void) |
void | broadcastPoll (uint16_t command) |
void | broadcastWrite (uint16_t command, uint16_t size, uint8_t *data) |
void | broadcastWrite (uint16_t command, uint16_t size, uint8_t *data) |
int | broadcastRead (uint16_t command, uint16_t size, uint8_t *data) |
int | broadcastRead (uint16_t command, uint16_t size, uint8_t *data) |
@@ -351,9 +351,10 @@ | |
void | BL_checkAndBoot (void) |
void | BL_processCommand (BLCmd_t cmd, uint32_t data) |
void | BL_processCommand (BLCmd_t cmd, uint32_t data) |
void | BL_sendStatusMessage (uint8_t cmd, uint32_t data) |
void | BL_sendStatusMessage (uint8_t cmd, uint32_t data) |
bool | BL_flashStarted (void) |
int8_t | bCommitWrite (b_handle_t *b, uint32_t items_written) |
Updates the head by 1 item Call after successful bGetHeadForWrite and AFTER writing your data Note: Ensure these calls occur in order (i.e. not preempted by another producer) | |
int8_t | bSendToBack (b_handle_t *b, const void *data) |
int8_t | bSendToBack (b_handle_t *b, const void *data) |
uint32_t | bGetItemCount (b_handle_t *b, uint8_t t_idx) |
Returns number of items left to read for given tail. | |
int8_t | bCommitWrite (b_handle_t *b, uint32_t items_written) |
Updates the head by 1 item Call after successful bGetHeadForWrite and AFTER writing your data Note: Ensure these calls occur in order (i.e. not preempted by another producer) | |
int8_t | bSendToBack (b_handle_t *b, const void *data) |
int8_t | bSendToBack (b_handle_t *b, const void *data) |
int8_t | bGetTailForRead (b_handle_t *b, uint8_t t_idx, void **rx_loc, uint32_t *contiguous_items) |
Gets the number of contiguous items available to read at *rx_loc. | |
void | PHAL_CRC32_Init (void) |
uint32_t | PHAL_CRC32_Calculate (uint32_t *data, uint32_t count) |
uint32_t | PHAL_CRC32_Calculate (uint32_t *data, uint32_t count) |
uint32_t | PHAL_CRC32_CalculateSW (uint32_t *data, uint32_t count) |
uint32_t | PHAL_CRC32_CalculateSW (uint32_t *data, uint32_t count) |
void CAN2_RX0_IRQHandler | -( | -) | -- |
usart_init_t lte_usart_config | +
q_handle_t q_rx_can_uds | +
dma_init_t spi_rx_dma_config = SPI2_RXDMA_CONT_CONFIG(NULL, 2) | +dma_init_t spi_rx_dma_config = SPI1_RXDMA_CONT_CONFIG(NULL, 2) |
dma_init_t spi_tx_dma_config = SPI2_TXDMA_CONT_CONFIG(NULL, 1) | +dma_init_t spi_tx_dma_config = SPI1_TXDMA_CONT_CONFIG(NULL, 1) |
dma_init_t usart_rx_dma_config = USART6_RXDMA_CONT_CONFIG(NULL, 2) | +
dma_init_t usart_tx_dma_config = USART6_TXDMA_CONT_CONFIG(NULL, 1) | +
#include "log.h"
#include "common/queue/queue.h"
Go to the source code of this file.
Macros | |
#define | EN_CAN2 1 |
#define | ID_LWS_STANDARD 0x2b0 |
#define | RED 14 |
#define | BLUE 15 |
#define | GREEN 12 |
#define | ORANGE 13 |
#define | RED_LED_PORT GPIOD |
#define | RED_LED_PIN RED |
#define | BLUE_LED_PORT GPIOD |
#define | BLUE_LED_PIN BLUE |
#define | GREEN_LED_PORT GPIOD |
#define | GREEN_LED_PIN GREEN |
#define | ORANGE_LED_PORT GPIOD |
#define | ORANGE_LED_PIN ORANGE |
#define | USER_BTN_PORT GPIOA |
#define | USER_BTN_PIN 0 |
#define | HEARTBEAT_LED_PORT GPIOA |
#define | HEARTBEAT_LED_PORT GPIOD |
#define | HEARTBEAT_LED_PIN 0 |
#define | HEARTBEAT_LED_PIN 13 |
#define | CONNECTION_LED_PORT GPIOA |
#define | CONNECTION_LED_PORT GPIOD |
#define | CONNECTION_LED_PIN 1 |
#define | CONNECTION_LED_PIN 14 |
#define | ERROR_LED_PORT GPIOA |
#define | ERROR_LED_PORT GPIOD |
#define | ERROR_LED_PIN 4 |
#define | ERROR_LED_PIN 15 |
#define | SD_ACTIVITY_LED_PORT GPIOA |
#define | SD_DETECT_LED_PIN 10 |
#define | SD_CD_PORT GPIOC |
#define | SD_CD_PORT GPIOD |
#define | SD_CD_PIN 6 |
#define | SD_CD_PIN 4 |
#define | ETH_CS_PORT GPIOB |
#define | ETH_CS_PORT GPIOA |
#define | ETH_CS_PIN 12 |
#define | ETH_CS_PIN 4 |
#define | ETH_RST_PORT GPIOB |
#define | ETH_SCK_PORT GPIOA |
#define | ETH_SCK_PIN 5 |
#define | ETH_MISO_PORT GPIOA |
#define | ETH_MISO_PIN 6 |
#define | ETH_MOSI_PORT GPIOA |
#define | ETH_MOSI_PIN 7 |
#define | ETH_RST_PORT GPIOE |
#define | ETH_RST_PIN 11 |
#define | ETH_RST_PIN 3 |
#define | LTE_UART_TX_PORT GPIOC |
#define | LTE_UART_TX_PIN 6 |
#define | LTE_UART_RX_PORT GPIOC |
#define | LTE_UART_RX_PIN 7 |
#define | PWR_LOSS_PORT GPIOE |
#define | PWR_LOSS_PIN 15 |
#define | LOG_ENABLE_PORT GPIOC |
#define | LOG_ENABLE_PIN 7 |
#define | LOG_ENABLE_PIN 15 |
#define | PER 1 |
q_handle_t | q_tx_can2_to_can1 |
q_handle_t | q_rx_can_uds |
b_handle_t | b_rx_can |
b_handle_t | b_rx_tcp |
#define BLUE 15 | +#define CONNECTION_LED_PIN 14 |
#define BLUE_LED_PIN BLUE | +#define CONNECTION_LED_PORT GPIOD |
#define BLUE_LED_PORT GPIOD | +#define ERROR_LED_PIN 15 |
#define CONNECTION_LED_PIN 1 | +#define ERROR_LED_PORT GPIOD |
#define CONNECTION_LED_PORT GPIOA | +#define ETH_CS_PIN 4 |
#define EN_CAN2 1 | +#define ETH_CS_PORT GPIOA |
#define ERROR_LED_PIN 4 | +#define ETH_MISO_PIN 6 |
#define ERROR_LED_PORT GPIOA | +#define ETH_MISO_PORT GPIOA |
#define ETH_CS_PIN 12 | +#define ETH_MOSI_PIN 7 |
#define ETH_CS_PORT GPIOB | +#define ETH_MOSI_PORT GPIOA |
#define GREAT PER | +#define ETH_SCK_PIN 5 |
#define GREEN 12 | +#define ETH_SCK_PORT GPIOA |
#define GREEN_LED_PIN GREEN | -
#define GREEN_LED_PORT GPIOD | +#define GREAT PER |
#define ORANGE 13 | -
#define ORANGE_LED_PIN ORANGE | -
#define ORANGE_LED_PORT GPIOD | +#define LTE_UART_RX_PIN 7 |
#define PER 1 | +#define LTE_UART_RX_PORT GPIOC |
#define PWR_LOSS_PIN 15 | +#define LTE_UART_TX_PIN 6 |
#define PWR_LOSS_PORT GPIOE | +#define LTE_UART_TX_PORT GPIOC |
#define RED 14 | +#define PER 1 |
#define RED_LED_PIN RED | +#define PWR_LOSS_PIN 15 |
#define RED_LED_PORT GPIOD | +#define PWR_LOSS_PORT GPIOE |
#define USER_BTN_PIN 0 | -
#define USER_BTN_PORT GPIOA | -
+
|
+ +extern | +
+Macros | |
#define | DAQ_BL_CMD_RST 0x05 |
#define | DAQ_BL_CMD_NTP_DATE 0x10 |
#define | DAQ_BL_CMD_NTP_TIME 0x11 |
#define | DAQ_BL_CMD_NTP_GET 0x12 |
#define | DAQ_BL_CMD_LOG_ENABLE 0x20 |
#define | DAQ_BL_CMD_LOG_STATUS 0x21 |
Functions | |||||
void | daq_init (void) |
#define DAQ_BL_CMD_LOG_ENABLE 0x20 | +
#define DAQ_BL_CMD_LOG_STATUS 0x21 | +
#define DAQ_BL_CMD_NTP_DATE 0x10 | +
#define DAQ_BL_CMD_NTP_GET 0x12 | +
#define DAQ_BL_CMD_NTP_TIME 0x11 | +
#define DAQ_BL_CMD_RST 0x05 | +
#define CAN_ERR_MASK 0x1FFFFFFFU /* omit EFF, RTR, ERR flags */ | +#define CAN_ERR_MASK 0x1FFFFFFFU /* omit EFF, RTR, ERR flags */ |
#define DISK_LOG | -( | -... | ) | -- |
void __attribute__ | +struct eeprom __attribute__ |
< command
-< message id
-< data length code
-< message data
#define BPB_ExtFlags32 40 /* FAT32: Extended flags (WORD) */ | +#define BPB_ExtFlags32 40 /* FAT32: Extended flags (WORD) */ |
#define BPB_RsvdSecCnt 14 /* Size of reserved area [sector] (WORD) */ | +#define BPB_RsvdSecCnt 14 /* Size of reserved area [sector] (WORD) */ |
#define BPB_VolFlagEx 106 /* exFAT: Volume flags (WORD) */ | +#define BPB_VolFlagEx 106 /* exFAT: Volume flags (WORD) */ |
#define GPTE_Flags 48 /* GPT PTE: Partition flags (QWORD) */ | +#define GPTE_Flags 48 /* GPT PTE: Partition flags (QWORD) */ |
#define GPTH_FstLba 40 /* GPT HDR: First LBA for partition data (QWORD) */ | +#define GPTH_FstLba 40 /* GPT HDR: First LBA for partition data (QWORD) */ |
#define GPTH_LstLba 48 /* GPT HDR: Last LBA for partition data (QWORD) */ | +#define GPTH_LstLba 48 /* GPT HDR: Last LBA for partition data (QWORD) */ |
#define XDIR_FstClus 52 /* exFAT: First cluster of the file data (DWORD) */ | +#define XDIR_FstClus 52 /* exFAT: First cluster of the file data (DWORD) */ |
#define XDIR_GenFlags 33 /* exFAT: General secondary flags (BYTE) */ | +#define XDIR_GenFlags 33 /* exFAT: General secondary flags (BYTE) */ |
Functions | |
FRESULT | f_open (FIL *fp, const TCHAR *path, BYTE mode) |
FRESULT | f_open (FIL *fp, const TCHAR *path, BYTE mode) |
FRESULT | f_close (FIL *fp) |
#define | CAN_ERR_TX_TIMEOUT 0x00000001U /* TX timeout (by netdevice driver) */ |
#define | CAN_ERR_LOSTARB 0x00000002U /* lost arbitration / data[0] */ |
#define | CAN_ERR_LOSTARB 0x00000002U /* lost arbitration / data[0] */ |
#define | CAN_ERR_CRTL 0x00000004U /* controller problems / data[1] */ |
#define | CAN_ERR_CRTL 0x00000004U /* controller problems / data[1] */ |
#define | CAN_ERR_PROT 0x00000008U /* protocol violations / data[2..3] */ |
#define | CAN_ERR_PROT 0x00000008U /* protocol violations / data[2..3] */ |
#define | CAN_ERR_TRX 0x00000010U /* transceiver status / data[4] */ |
#define | CAN_ERR_TRX 0x00000010U /* transceiver status / data[4] */ |
#define | CAN_ERR_ACK 0x00000020U /* received no ACK on transmission */ |
#define | CAN_ERR_PROT_LOC_RTR 0x0C /* RTR */ |
#define | CAN_ERR_PROT_LOC_RES1 0x0D /* reserved bit 1 */ |
#define | CAN_ERR_PROT_LOC_RES1 0x0D /* reserved bit 1 */ |
#define | CAN_ERR_PROT_LOC_RES0 0x09 /* reserved bit 0 */ |
#define | CAN_ERR_PROT_LOC_RES0 0x09 /* reserved bit 0 */ |
#define | CAN_ERR_PROT_LOC_DLC 0x0B /* data length code */ |
#define | CAN_ERR_PROT_LOC_DLC 0x0B /* data length code */ |
#define | CAN_ERR_PROT_LOC_DATA 0x0A /* data section */ |
#define | CAN_ERR_PROT_LOC_DATA 0x0A /* data section */ |
#define | CAN_ERR_PROT_LOC_CRC_SEQ 0x08 /* CRC sequence */ |
+Functions | |
struct gs_host_config | __attribute__ ((__packed__)) |
Variables | |
struct gs_host_config | __packed |
u32 | byte_order |
u8 | reserved1 |
u8 | reserved2 |
u8 | reserved3 |
u8 | icount |
u32 | sw_version |
u32 | hw_version |
u32 | mode |
u32 | flags |
struct gs_device_state | __packed |
u32 | prop_seg |
u32 | phase_seg1 |
u32 | phase_seg2 |
u32 | sjw |
u32 | brp |
u32 | feature |
u32 | fclk_can |
u32 | tseg1_min |
u32 | tseg1_max |
u32 | tseg2_min |
u32 | tseg2_max |
u32 | sjw_max |
u32 | brp_min |
u32 | brp_max |
u32 | brp_inc |
u32 | echo_id |
u32 | can_id |
u8 | can_dlc |
u8 | channel |
u8 | reserved |
u8 | data [8] |
u32 | timestamp_us |
struct gs_tx_context | __attribute__ |
#define CAN_ERR_CRTL 0x00000004U /* controller problems / data[1] */ | +#define CAN_ERR_CRTL 0x00000004U /* controller problems / data[1] */ |
#define CAN_ERR_LOSTARB 0x00000002U /* lost arbitration / data[0] */ | +#define CAN_ERR_LOSTARB 0x00000002U /* lost arbitration / data[0] */ |
#define CAN_ERR_PROT 0x00000008U /* protocol violations / data[2..3] */ | +#define CAN_ERR_PROT 0x00000008U /* protocol violations / data[2..3] */ |
#define CAN_ERR_PROT_LOC_DATA 0x0A /* data section */ | +#define CAN_ERR_PROT_LOC_DATA 0x0A /* data section */ |
#define CAN_ERR_PROT_LOC_DLC 0x0B /* data length code */ | +#define CAN_ERR_PROT_LOC_DLC 0x0B /* data length code */ |
#define CAN_ERR_PROT_LOC_RES0 0x09 /* reserved bit 0 */ | +#define CAN_ERR_PROT_LOC_RES0 0x09 /* reserved bit 0 */ |
#define CAN_ERR_PROT_LOC_RES1 0x0D /* reserved bit 1 */ | +#define CAN_ERR_PROT_LOC_RES1 0x0D /* reserved bit 1 */ |
#define CAN_ERR_TRX 0x00000010U /* transceiver status / data[4] */ | +#define CAN_ERR_TRX 0x00000010U /* transceiver status / data[4] */ |
struct gs_host_config __attribute__ | +( | +(__packed__) | ) | ++ |
void __attribute__ | +
< command
+< message id
+< data length code
+< message data
+ +struct gs_device_state __packed | +
u32 brp | +
u32 brp_inc | +
u32 brp_max | +
u32 brp_min | +
u32 byte_order | +
u8 can_dlc | +
u32 can_id | +
u8 channel | +
u8 data[8] | +
u32 echo_id | +
u32 fclk_can | +
u32 feature | +
u8 flags | +
u32 hw_version | +
u8 icount | +
u32 mode | +
u32 phase_seg1 | +
u32 phase_seg2 | +
u32 prop_seg | +
u8 reserved | +
u8 reserved1 | +
u8 reserved2 | +
u8 reserved3 | +
u32 sjw | +
u32 sjw_max | +
u32 sw_version | +
u32 timestamp_us | +
u32 tseg1_max | +
u32 tseg1_min | +
u32 tseg2_max | +
struct gs_host_frame __packed | +u32 tseg2_min |
void PHAL_SPI_ForceReset | +( | +SPI_InitConfig_t * | spi | ) | ++ |
bool PHAL_SPI_transfer_noDMA_DAQW5500Only | +( | +SPI_InitConfig_t * | spi, | +
+ | + | const uint8_t * | out_data, | +
+ | + | uint32_t | txlen, | +
+ | + | uint32_t | rxlen, | +
+ | + | uint8_t * | in_data ) | +
void PHAL_SPI_ForceReset | +( | +SPI_InitConfig_t * | spi | ) | ++ |
bool PHAL_SPI_transfer_noDMA_DAQW5500Only | +( | +SPI_InitConfig_t * | spi, | +
+ | + | const uint8_t * | out_data, | +
+ | + | uint32_t | txlen, | +
+ | + | uint32_t | rxlen, | +
+ | + | uint8_t * | in_data ) | +
bool daq_hub_t::log_enable_uds | +
#define BMI088_GYRO_BANDWIDTH_ADDR (0x10U) /* Gyro data bandwidth address */ | +#define BMI088_GYRO_BANDWIDTH_ADDR (0x10U) /* Gyro data bandwidth address */ |
#define BMI088_GYRO_RANGE_ADDR (0x0FU) /* Gyro data range address */ | +#define BMI088_GYRO_RANGE_ADDR (0x0FU) /* Gyro data range address */ |