32 #ifndef ti_drivers_rcl_lrf_LRFLPF3_Interface__include 33 #define ti_drivers_rcl_lrf_LRFLPF3_Interface__include 37 #include <ti/devices/DeviceFamily.h> 38 #include DeviceFamily_constructPath(inc/hw_types.h) 39 #include DeviceFamily_constructPath(inc/hw_lrfddbell.h) 40 #include DeviceFamily_constructPath(inc/hw_lrfdmdm.h) 41 #include DeviceFamily_constructPath(inc/hw_lrfdpbe.h) 42 #include DeviceFamily_constructPath(inc/hw_lrfdpbe32.h) 43 #include DeviceFamily_constructPath(inc/hw_memmap.h) 44 #include DeviceFamily_constructPath(inc/pbe_common_ram_regs.h) 45 #include DeviceFamily_constructPath(inc/pbe_generic_regdef_regs.h) 47 #if (DeviceFamily_PARENT != DeviceFamily_PARENT_CC23X0) && (DeviceFamily_PARENT != DeviceFamily_PARENT_CC27XX) 48 #error "This LRFLPF3_Interface.h header file is only for CC23X0 and CC27XX devices!" 55 #define LRF_INTERFACE_ENDCAUSE_STAT_ENDOK (uint16_t)(PBE_COMMON_RAM_ENDCAUSE_STAT_ENDOK) 56 #define LRF_INTERFACE_ENDCAUSE_STAT_RXTIMEOUT (uint16_t)(PBE_COMMON_RAM_ENDCAUSE_STAT_RXTIMEOUT) 57 #define LRF_INTERFACE_ENDCAUSE_STAT_NOSYNC (uint16_t)(PBE_COMMON_RAM_ENDCAUSE_STAT_NOSYNC) 58 #define LRF_INTERFACE_ENDCAUSE_STAT_RXERR (uint16_t)(PBE_COMMON_RAM_ENDCAUSE_STAT_RXERR) 59 #define LRF_INTERFACE_ENDCAUSE_STAT_CONNECT (uint16_t)(PBE_COMMON_RAM_ENDCAUSE_STAT_CONNECT) 60 #define LRF_INTERFACE_ENDCAUSE_STAT_MAXNAK (uint16_t)(PBE_COMMON_RAM_ENDCAUSE_STAT_MAXNAK) 61 #define LRF_INTERFACE_ENDCAUSE_STAT_SCANRSP (uint16_t)(PBE_COMMON_RAM_ENDCAUSE_STAT_SCANRSP) 62 #define LRF_INTERFACE_ENDCAUSE_STAT_EOPSTOP (uint16_t)(PBE_COMMON_RAM_ENDCAUSE_STAT_EOPSTOP) 63 #define LRF_INTERFACE_ENDCAUSE_STAT_ERR_RXF (uint16_t)(PBE_COMMON_RAM_ENDCAUSE_STAT_ERR_RXF) 64 #define LRF_INTERFACE_ENDCAUSE_STAT_ERR_TXF (uint16_t)(PBE_COMMON_RAM_ENDCAUSE_STAT_ERR_TXF) 65 #define LRF_INTERFACE_ENDCAUSE_STAT_ERR_SYNTH (uint16_t)(PBE_COMMON_RAM_ENDCAUSE_STAT_ERR_SYNTH) 66 #define LRF_INTERFACE_ENDCAUSE_STAT_ERR_STOP (uint16_t)(PBE_COMMON_RAM_ENDCAUSE_STAT_ERR_STOP) 67 #define LRF_INTERFACE_ENDCAUSE_STAT_ERR_PAR (uint16_t)(PBE_COMMON_RAM_ENDCAUSE_STAT_ERR_PAR) 68 #define LRF_INTERFACE_ENDCAUSE_STAT_ERR_BADOP (uint16_t)(PBE_COMMON_RAM_ENDCAUSE_STAT_ERR_BADOP) 69 #define LRF_INTERFACE_ENDCAUSE_STAT_ERR_INTERNAL (uint16_t)(PBE_COMMON_RAM_ENDCAUSE_STAT_ERR_INTERNAL) 77 HWREGH_WRITE_LRF(LRFDPBE_BASE + LRFDPBE_O_API) = op;
82 HWREG_WRITE_LRF(LRFDPBE32_BASE + LRFDPBE32_O_MDMSYNCA) = syncWord;
87 HWREG_WRITE_LRF(LRFDPBE32_BASE + LRFDPBE32_O_MDMSYNCB) = syncWord;
92 return HWREGH_READ_LRF(LRFD_BUFRAM_BASE + PBE_COMMON_RAM_O_ENDCAUSE);
102 return (endCause == PBE_COMMON_RAM_ENDCAUSE_STAT_ENDOK);
107 return (endCause == PBE_COMMON_RAM_ENDCAUSE_STAT_NOSYNC);
static bool LRF_Interface_isCmdEndCauseEndOk(uint16_t endCause)
Definition: LRFLPF3_Interface.h:100
static void LRF_Interface_programSyncWordB(uint32_t syncWord)
Definition: LRFLPF3_Interface.h:85
static void LRF_Interface_sendOp(uint16_t op)
Definition: LRFLPF3_Interface.h:75
static uint16_t LRF_Interface_getCmdEndCause(void)
Definition: LRFLPF3_Interface.h:90
static bool LRF_Interface_isCmdEndCauseEndedWithoutSync(uint16_t endCause)
Definition: LRFLPF3_Interface.h:105
static bool LRF_Interface_isCmdEndCauseEopStop(void)
Definition: LRFLPF3_Interface.h:95
static void LRF_Interface_programSyncWordA(uint32_t syncWord)
Definition: LRFLPF3_Interface.h:80