Skip to content

Commit 0fb1c46

Browse files
committed
firmware: drivers: si446x: Fixing unit test errors
1 parent 5e7c6a0 commit 0fb1c46

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

firmware/drivers/si446x/si446x.c

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* \author Gabriel Mariano Marcelino <gabriel.mm8@gmail.com>
2727
* \author Miguel Boing <miguelboing13@gmail.com>
2828
*
29-
* \version 1.0.0
29+
* \version 1.1.0
3030
*
3131
* \date 2024/09/09
3232
*
@@ -63,6 +63,20 @@ const uint8_t SI446X_CONFIGURATION_DATA[] = RADIO_CONFIGURATION_DATA_ARRAY;
6363

6464
uint8_t si446x_mode = 0xFF;
6565

66+
/**
67+
* \brief Enables the SPI communication with the device.
68+
*
69+
* \return None.
70+
*/
71+
void si446x_slave_enable(void);
72+
73+
/**
74+
* \brief Disables the SPI communication with the device.
75+
*
76+
* \return None.
77+
*/
78+
void si446x_slave_disable(void);
79+
6680
int si446x_init(void)
6781
{
6882
#if defined(CONFIG_DRIVERS_DEBUG_ENABLED) && (CONFIG_DRIVERS_DEBUG_ENABLED == 1)

firmware/drivers/si446x/si446x.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* \author Gabriel Mariano Marcelino <gabriel.mm8@gmail.com>
2727
* \author Miguel Boing <miguelboing13@gmail.com>
2828
*
29-
* \version 1.0.0
29+
* \version 1.1.0
3030
*
3131
* \date 2024/09/09
3232
*
@@ -75,6 +75,20 @@ typedef enum
7575
*/
7676
int si446x_init(void);
7777

78+
/**
79+
* \brief Shutdown the device.
80+
*
81+
* \return None.
82+
*/
83+
void si446x_shutdown(void);
84+
85+
/**
86+
* \brief Power-up the device.
87+
*
88+
* \return None.
89+
*/
90+
void si446x_power_up(void);
91+
7892
/**
7993
* \brief Configures the registers of the SI446X device.
8094
*

0 commit comments

Comments
 (0)