Revision 33f54213 include/DW1000/v1/alld_dw1000_v1.h
include/DW1000/v1/alld_dw1000_v1.h | ||
---|---|---|
477 | 477 |
* |
478 | 478 |
* returns DWT_SUCCESS for success, or DWT_ERROR for error |
479 | 479 |
*/ |
480 |
int dwt_initialise(uint16_t config) ; // TODO |
|
481 |
//int dwt_initialise(uint16_t config, DW1000Driver* drv) ;
|
|
480 |
//int dwt_initialise(uint16_t config) ; // TODO
|
|
481 |
int dwt_initialise(uint16_t config, DW1000Driver* drv) ; |
|
482 | 482 |
|
483 | 483 |
/*! ------------------------------------------------------------------------------------------------------------------ |
484 | 484 |
* @fn dwt_configure() |
... | ... | |
1728 | 1728 |
****************************************************************************************************************************************************/ |
1729 | 1729 |
|
1730 | 1730 |
|
1731 |
/*! ------------------------------------------------------------------------------------------------------------------ |
|
1732 |
* @fn writetospi() |
|
1733 |
* |
|
1734 |
* @brief |
|
1735 |
* NB: In porting this to a particular microprocessor, the implementer needs to define the two low |
|
1736 |
* level abstract functions to write to and read from the SPI. |
|
1737 |
* Low level abstract function to write to the SPI |
|
1738 |
* Takes two separate byte buffers for write header and write data |
|
1739 |
* returns 0 for success, or -1 for error |
|
1740 |
* |
|
1741 |
* Note: The body of this function is platform specific |
|
1742 |
* |
|
1743 |
* input parameters: |
|
1744 |
* @param headerLength - number of bytes header being written |
|
1745 |
* @param headerBuffer - pointer to buffer containing the 'headerLength' bytes of header to be written |
|
1746 |
* @param bodylength - number of bytes data being written |
|
1747 |
* @param bodyBuffer - pointer to buffer containing the 'bodylength' bytes od data to be written |
|
1748 |
* |
|
1749 |
* output parameters |
|
1750 |
* |
|
1751 |
* returns DWT_SUCCESS for success, or DWT_ERROR for error |
|
1752 |
*/ |
|
1753 |
extern int writetospi(uint16_t headerLength, const uint8_t *headerBuffer, uint32_t bodylength, const uint8_t *bodyBuffer); |
|
1754 |
|
|
1755 |
/*! ------------------------------------------------------------------------------------------------------------------ |
|
1756 |
* @fn readfromspi() |
|
1757 |
* |
|
1758 |
* @brief |
|
1759 |
* NB: In porting this to a particular microprocessor, the implementer needs to define the two low |
|
1760 |
* level abstract functions to write to and read from the SPI. |
|
1761 |
* Low level abstract function to write to the SPI |
|
1762 |
* Takes two separate byte buffers for write header and write data |
|
1763 |
* returns 0 for success, or -1 for error |
|
1764 |
* |
|
1765 |
* Note: The body of this function is platform specific |
|
1766 |
* |
|
1767 |
* input parameters: |
|
1768 |
* @param headerLength - number of bytes header to write |
|
1769 |
* @param headerBuffer - pointer to buffer containing the 'headerLength' bytes of header to write |
|
1770 |
* @param readlength - number of bytes data being read |
|
1771 |
* @param readBuffer - pointer to buffer containing to return the data (NB: size required = headerLength + readlength) |
|
1772 |
* |
|
1773 |
* output parameters |
|
1774 |
* |
|
1775 |
* returns DWT_SUCCESS for success (and the position in the buffer at which data begins), or DWT_ERROR for error |
|
1776 |
*/ |
|
1777 |
extern int readfromspi(uint16_t headerLength, const uint8_t *headerBuffer, uint32_t readlength, uint8_t *readBuffer); |
|
1778 |
|
|
1779 | 1731 |
// --------------------------------------------------------------------------- |
1780 | 1732 |
// |
1781 | 1733 |
// NB: The purpose of the deca_mutex.c file is to provide for microprocessor interrupt enable/disable, this is used for |
... | ... | |
1845 | 1797 |
|
1846 | 1798 |
void port_EnableEXT_IRQ(void); |
1847 | 1799 |
void port_DisableEXT_IRQ(void); |
1848 |
ITStatus port_GetEXT_IRQStatus(void); |
|
1800 |
decaIrqStatus_t port_GetEXT_IRQStatus(void); |
|
1801 |
//ITStatus port_GetEXT_IRQStatus(void); |
|
1849 | 1802 |
|
1850 | 1803 |
void port_set_dw1000_slowrate(void); |
1851 | 1804 |
void port_set_dw1000_fastrate(void); |
... | ... | |
1859 | 1812 |
#define DW1000_EXTI_IRQn EXTI15_10_IRQn |
1860 | 1813 |
|
1861 | 1814 |
|
1862 |
/** |
|
1863 |
* @brief Flag to switch between two SPI speeds on the fly |
|
1864 |
*/ |
|
1865 |
extern bool isHighSpeedSpi; |
|
1866 |
|
|
1867 |
|
|
1868 |
/** |
|
1869 |
* @brief Configuration for the Low Speed SPI interface driver to communicate with DW1000 |
|
1870 |
*/ |
|
1871 |
//extern SPIConfig moduleHalSpiUwbLsConfig; |
|
1872 |
|
|
1873 |
|
|
1874 |
/** |
|
1875 |
* @brief Configuration for the High Speed SPI interface driver to communicate with DW1000 |
|
1876 |
*/ |
|
1877 |
//extern SPIConfig moduleHalSpiUwbHsConfig; |
|
1878 |
|
|
1879 | 1815 |
#endif /* defined(AMIROLLD_CFG_DW1000) && (AMIROLLD_CFG_DW1000 == 1) */ |
1880 | 1816 |
|
1881 | 1817 |
#endif //AMIROLLD_DW1000_V1_H |
Also available in: Unified diff