Move Doxyfile to repository root (#674)
This makes most tools/plugins for Doxygen work without much adjustment. Also resolved some Doxygen warnings.
This commit is contained in:
committed by
Henrik Ekblad
parent
6564daec3e
commit
ea65c5b150
@@ -951,7 +951,6 @@
|
|||||||
#define MY_TRANSPORT_UPLINK_CHECK_DISABLED
|
#define MY_TRANSPORT_UPLINK_CHECK_DISABLED
|
||||||
#define MY_DEBUG_VERBOSE_RF24
|
#define MY_DEBUG_VERBOSE_RF24
|
||||||
#define MY_TRANSPORT_SANITY_CHECK
|
#define MY_TRANSPORT_SANITY_CHECK
|
||||||
#define MY_RF24_IRQ_PIN
|
|
||||||
#define MY_RX_MESSAGE_BUFFER_FEATURE
|
#define MY_RX_MESSAGE_BUFFER_FEATURE
|
||||||
#define MY_RX_MESSAGE_BUFFER_SIZE
|
#define MY_RX_MESSAGE_BUFFER_SIZE
|
||||||
#define MY_NODE_LOCK_FEATURE
|
#define MY_NODE_LOCK_FEATURE
|
||||||
|
|||||||
@@ -335,7 +335,6 @@ int8_t _sleep(const uint32_t sleepingMS, const bool smartSleep = false, const ui
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup MyLockgrp
|
* @ingroup MyLockgrp
|
||||||
* @ingroup internals
|
|
||||||
* @brief Lock a node and transmit provided message with 30m intervals
|
* @brief Lock a node and transmit provided message with 30m intervals
|
||||||
*
|
*
|
||||||
* This function is called if suspicious activity has exceeded the threshold (see
|
* This function is called if suspicious activity has exceeded the threshold (see
|
||||||
|
|||||||
@@ -297,6 +297,9 @@
|
|||||||
#define SHA204_PIN_READ() (*device_port_IN & device_pin)
|
#define SHA204_PIN_READ() (*device_port_IN & device_pin)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* atsha204Class class
|
||||||
|
*/
|
||||||
class atsha204Class
|
class atsha204Class
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
@@ -318,21 +321,145 @@ private:
|
|||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
atsha204Class(uint8_t pin); // Constructor
|
/**
|
||||||
|
* @brief Constructor
|
||||||
|
*
|
||||||
|
* @param[in] pin The pin to use for communication
|
||||||
|
*/
|
||||||
|
atsha204Class(uint8_t pin);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Wake up device
|
||||||
|
*
|
||||||
|
* @param response The response from the device
|
||||||
|
*
|
||||||
|
* @return Error code (SHA204_SUCCESS if OK)
|
||||||
|
*/
|
||||||
uint8_t sha204c_wakeup(uint8_t *response);
|
uint8_t sha204c_wakeup(uint8_t *response);
|
||||||
uint8_t sha204c_send_and_receive(uint8_t *tx_buffer, uint8_t rx_size, uint8_t *rx_buffer, uint8_t execution_delay, uint8_t execution_timeout);
|
|
||||||
|
/**
|
||||||
|
* @brief Send and receive data
|
||||||
|
*
|
||||||
|
* @param tx_buffer The transmit buffer
|
||||||
|
* @param[in] rx_size The receive size
|
||||||
|
* @param rx_buffer The receive buffer
|
||||||
|
* @param[in] execution_delay The execution delay
|
||||||
|
* @param[in] execution_timeout The execution timeout
|
||||||
|
*
|
||||||
|
* @return Error code (SHA204_SUCCESS if OK)
|
||||||
|
*/
|
||||||
|
uint8_t sha204c_send_and_receive(uint8_t *tx_buffer, uint8_t rx_size, uint8_t *rx_buffer,
|
||||||
|
uint8_t execution_delay, uint8_t execution_timeout);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Resyncronize the device
|
||||||
|
*
|
||||||
|
* @param[in] size The size of the response buffer
|
||||||
|
* @param response The response
|
||||||
|
*
|
||||||
|
* @return Error code (SHA204_SUCCESS if OK)
|
||||||
|
*/
|
||||||
uint8_t sha204c_resync(uint8_t size, uint8_t *response);
|
uint8_t sha204c_resync(uint8_t size, uint8_t *response);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Generate random data
|
||||||
|
*
|
||||||
|
* @param tx_buffer The transmit buffer
|
||||||
|
* @param rx_buffer The receive buffer
|
||||||
|
* @param[in] mode The mode
|
||||||
|
*
|
||||||
|
* @return Error code (SHA204_SUCCESS if OK)
|
||||||
|
*/
|
||||||
uint8_t sha204m_random(uint8_t * tx_buffer, uint8_t * rx_buffer, uint8_t mode);
|
uint8_t sha204m_random(uint8_t * tx_buffer, uint8_t * rx_buffer, uint8_t mode);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Read device revision
|
||||||
|
*
|
||||||
|
* @param tx_buffer The transmit buffer
|
||||||
|
* @param rx_buffer The receive buffer
|
||||||
|
*
|
||||||
|
* @return Error code (SHA204_SUCCESS if OK)
|
||||||
|
*/
|
||||||
uint8_t sha204m_dev_rev(uint8_t *tx_buffer, uint8_t *rx_buffer);
|
uint8_t sha204m_dev_rev(uint8_t *tx_buffer, uint8_t *rx_buffer);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Read from device
|
||||||
|
*
|
||||||
|
* @param tx_buffer The transmit buffer
|
||||||
|
* @param rx_buffer The receive buffer
|
||||||
|
* @param[in] zone The zone
|
||||||
|
* @param[in] address The address
|
||||||
|
*
|
||||||
|
* @return Error code (SHA204_SUCCESS if OK)
|
||||||
|
*/
|
||||||
uint8_t sha204m_read(uint8_t *tx_buffer, uint8_t *rx_buffer, uint8_t zone, uint16_t address);
|
uint8_t sha204m_read(uint8_t *tx_buffer, uint8_t *rx_buffer, uint8_t zone, uint16_t address);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Execute command
|
||||||
|
*
|
||||||
|
* @param[in] op_code The operation code
|
||||||
|
* @param[in] param1 The parameter 1
|
||||||
|
* @param[in] param2 The parameter 2
|
||||||
|
* @param[in] datalen1 The datalen 1
|
||||||
|
* @param data1 The data 1
|
||||||
|
* @param[in] datalen2 The datalen 2
|
||||||
|
* @param data2 The data 2
|
||||||
|
* @param[in] datalen3 The datalen 3
|
||||||
|
* @param data3 The data 3
|
||||||
|
* @param[in] tx_size The transmit size
|
||||||
|
* @param tx_buffer The transmit buffer
|
||||||
|
* @param[in] rx_size The receive size
|
||||||
|
* @param rx_buffer The receive buffer
|
||||||
|
*
|
||||||
|
* @return Error code (SHA204_SUCCESS if OK)
|
||||||
|
*/
|
||||||
uint8_t sha204m_execute(uint8_t op_code, uint8_t param1, uint16_t param2,
|
uint8_t sha204m_execute(uint8_t op_code, uint8_t param1, uint16_t param2,
|
||||||
uint8_t datalen1, uint8_t *data1, uint8_t datalen2, uint8_t *data2, uint8_t datalen3, uint8_t *data3,
|
uint8_t datalen1, uint8_t *data1, uint8_t datalen2, uint8_t *data2, uint8_t datalen3,
|
||||||
uint8_t tx_size, uint8_t *tx_buffer, uint8_t rx_size, uint8_t *rx_buffer);
|
uint8_t *data3,
|
||||||
uint8_t sha204m_check_parameters(uint8_t op_code, uint8_t param1, uint16_t param2,
|
|
||||||
uint8_t datalen1, uint8_t *data1, uint8_t datalen2, uint8_t *data2, uint8_t datalen3, uint8_t *data3,
|
|
||||||
uint8_t tx_size, uint8_t *tx_buffer, uint8_t rx_size, uint8_t *rx_buffer);
|
uint8_t tx_size, uint8_t *tx_buffer, uint8_t rx_size, uint8_t *rx_buffer);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Validate parameters
|
||||||
|
*
|
||||||
|
* @param[in] op_code The operation code
|
||||||
|
* @param[in] param1 The parameter 1
|
||||||
|
* @param[in] param2 The parameter 2
|
||||||
|
* @param[in] datalen1 The datalen 1
|
||||||
|
* @param data1 The data 1
|
||||||
|
* @param[in] datalen2 The datalen 2
|
||||||
|
* @param data2 The data 2
|
||||||
|
* @param[in] datalen3 The datalen 3
|
||||||
|
* @param data3 The data 3
|
||||||
|
* @param[in] tx_size The transmit size
|
||||||
|
* @param tx_buffer The transmit buffer
|
||||||
|
* @param[in] rx_size The receive size
|
||||||
|
* @param rx_buffer The receive buffer
|
||||||
|
*
|
||||||
|
* @return Error code (SHA204_SUCCESS if OK)
|
||||||
|
*/
|
||||||
|
uint8_t sha204m_check_parameters(uint8_t op_code, uint8_t param1, uint16_t param2,
|
||||||
|
uint8_t datalen1, uint8_t *data1, uint8_t datalen2, uint8_t *data2, uint8_t datalen3,
|
||||||
|
uint8_t *data3,
|
||||||
|
uint8_t tx_size, uint8_t *tx_buffer, uint8_t rx_size, uint8_t *rx_buffer);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Gets the serial number.
|
||||||
|
*
|
||||||
|
* @param response The response
|
||||||
|
*
|
||||||
|
* @return The serial number
|
||||||
|
*/
|
||||||
uint8_t getSerialNumber(uint8_t *response);
|
uint8_t getSerialNumber(uint8_t *response);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Calculates and update crc.
|
||||||
|
*
|
||||||
|
* @param[in] length The length
|
||||||
|
* @param data The data
|
||||||
|
* @param[in] current_crc The current crc
|
||||||
|
*
|
||||||
|
* @return The updated crc
|
||||||
|
*/
|
||||||
uint16_t calculateAndUpdateCrc(uint8_t length, uint8_t *data, uint16_t current_crc);
|
uint16_t calculateAndUpdateCrc(uint8_t length, uint8_t *data, uint16_t current_crc);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user