mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 01:53:51 +01:00
tree-wide: fix documentation issues
This should fix compilation with -Wdocumentation on LLVM.
This commit is contained in:
parent
e372d802a6
commit
4ce7ab2133
@ -153,8 +153,6 @@ void _native_LED_RED_TOGGLE(void);
|
|||||||
* @param[in] motor_driver motor driver to which motor is attached
|
* @param[in] motor_driver motor driver to which motor is attached
|
||||||
* @param[in] motor_id motor ID on driver
|
* @param[in] motor_id motor ID on driver
|
||||||
* @param[in] pwm_duty_cycle Signed PWM duty_cycle to set motor speed and direction
|
* @param[in] pwm_duty_cycle Signed PWM duty_cycle to set motor speed and direction
|
||||||
*
|
|
||||||
* @return 0 on success
|
|
||||||
*/
|
*/
|
||||||
void native_motor_driver_qdec_simulation( \
|
void native_motor_driver_qdec_simulation( \
|
||||||
const motor_driver_t motor_driver, uint8_t motor_id, \
|
const motor_driver_t motor_driver, uint8_t motor_id, \
|
||||||
|
|||||||
@ -456,9 +456,9 @@ typedef struct {
|
|||||||
*/
|
*/
|
||||||
#define HAVE_PWM_MODE_T
|
#define HAVE_PWM_MODE_T
|
||||||
typedef enum {
|
typedef enum {
|
||||||
PWM_LEFT = timerModeUp, /*< use left aligned PWM */
|
PWM_LEFT = timerModeUp, /**< use left aligned PWM */
|
||||||
PWM_RIGHT = timerModeDown, /*< use right aligned PWM */
|
PWM_RIGHT = timerModeDown, /**< use right aligned PWM */
|
||||||
PWM_CENTER = timerModeUp /*< not supported, use left aligned */
|
PWM_CENTER = timerModeUp /**< not supported, use left aligned */
|
||||||
} pwm_mode_t;
|
} pwm_mode_t;
|
||||||
/** @} */
|
/** @} */
|
||||||
#endif /* ndef DOXYGEN */
|
#endif /* ndef DOXYGEN */
|
||||||
|
|||||||
@ -157,7 +157,7 @@ static const struct option long_opts[] = {
|
|||||||
/**
|
/**
|
||||||
* @brief initialize _native_null_in_pipe to allow for reading from stdin
|
* @brief initialize _native_null_in_pipe to allow for reading from stdin
|
||||||
*
|
*
|
||||||
* @param[in] stdiotype _STDIOTYPE_STDIO to to just initialize pipe, any other
|
* @param[in] stdintype _STDIOTYPE_STDIO to to just initialize pipe, any other
|
||||||
* value to also redirect stdin to that pipe
|
* value to also redirect stdin to that pipe
|
||||||
*/
|
*/
|
||||||
void _native_input(_stdiotype_t stdintype)
|
void _native_input(_stdiotype_t stdintype)
|
||||||
@ -251,7 +251,7 @@ void daemonize(void)
|
|||||||
/**
|
/**
|
||||||
* Remove any -d options from an argument vector.
|
* Remove any -d options from an argument vector.
|
||||||
*
|
*
|
||||||
* @param[in][out] argv an argument vector
|
* @param[in,out] argv an argument vector
|
||||||
*/
|
*/
|
||||||
static void filter_daemonize_argv(char **argv)
|
static void filter_daemonize_argv(char **argv)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -197,7 +197,7 @@ union gpio_conf_nrf5x {
|
|||||||
* consulted.
|
* consulted.
|
||||||
*/
|
*/
|
||||||
bool initial_value : 1;
|
bool initial_value : 1;
|
||||||
uint8_t : 1; /*< padding */
|
uint8_t : 1; /**< padding */
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
/* END: GPIO LL overwrites */
|
/* END: GPIO LL overwrites */
|
||||||
|
|||||||
@ -180,7 +180,7 @@ uint16_t dma_suspend(dma_t dma);
|
|||||||
* @brief Resume a suspended DMA transfer on a stream
|
* @brief Resume a suspended DMA transfer on a stream
|
||||||
*
|
*
|
||||||
* @param[in] dma logical DMA stream
|
* @param[in] dma logical DMA stream
|
||||||
* @param[in] reamaining the remaining number of transfers to perform
|
* @param[in] remaining the remaining number of transfers to perform
|
||||||
*/
|
*/
|
||||||
void dma_resume(dma_t dma, uint16_t remaining);
|
void dma_resume(dma_t dma, uint16_t remaining);
|
||||||
|
|
||||||
@ -260,7 +260,7 @@ void dma_setup_ext(dma_t dma, dma_burst_t pburst, dma_burst_t mburst,
|
|||||||
* @param[in] dma Logical DMA stream
|
* @param[in] dma Logical DMA stream
|
||||||
* @param[in] mem Memory address
|
* @param[in] mem Memory address
|
||||||
* @param[in] len Number of transfers to perform
|
* @param[in] len Number of transfers to perform
|
||||||
* @param[in] inc_mem Increment the memory address (by the transfer width) after read/write
|
* @param[in] incr_mem Increment the memory address (by the transfer width) after read/write
|
||||||
*/
|
*/
|
||||||
void dma_prepare(dma_t dma, void *mem, size_t len, bool incr_mem);
|
void dma_prepare(dma_t dma, void *mem, size_t len, bool incr_mem);
|
||||||
|
|
||||||
|
|||||||
@ -39,8 +39,8 @@ static qdec_isr_ctx_t isr_ctx[QDEC_NUMOF];
|
|||||||
/**
|
/**
|
||||||
* @brief Read the current value of the given qdec device. Internal use.
|
* @brief Read the current value of the given qdec device. Internal use.
|
||||||
*
|
*
|
||||||
* @param[in] dev the qdec to read the current value from
|
* @param[in] qdec the qdec to read the current value from
|
||||||
* @param[in] dev perform a reset of qdec counter if not 0
|
* @param[in] reset perform a reset of qdec counter if not 0
|
||||||
*
|
*
|
||||||
* @return the qdecs current value
|
* @return the qdecs current value
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -23,52 +23,52 @@
|
|||||||
|
|
||||||
const cc110x_chanmap_t cc110x_chanmap_433mhz_300khz = {
|
const cc110x_chanmap_t cc110x_chanmap_433mhz_300khz = {
|
||||||
.map = {
|
.map = {
|
||||||
0, /*< base + 0.000MHz = 433.225 MHz (up to 350 kHz wide channel) */
|
0, /**< base + 0.000MHz = 433.225 MHz (up to 350 kHz wide channel) */
|
||||||
7, /*< base + 0.350MHz = 433.575 MHz (up to 350 kHz wide channel) */
|
7, /**< base + 0.350MHz = 433.575 MHz (up to 350 kHz wide channel) */
|
||||||
14, /*< base + 0.700MHz = 433.925 MHz (up to 350 kHz wide channel) */
|
14, /**< base + 0.700MHz = 433.925 MHz (up to 350 kHz wide channel) */
|
||||||
21, /*< base + 1.050MHz = 434.275 MHz (up to 350 kHz wide channel) */
|
21, /**< base + 1.050MHz = 434.275 MHz (up to 350 kHz wide channel) */
|
||||||
28, /*< base + 1.400MHz = 434.625 MHz (only up to *330* kHz wide) */
|
28, /**< base + 1.400MHz = 434.625 MHz (only up to *330* kHz wide) */
|
||||||
255, /*< License free range (433.05 MHz - 434.79 MHz) exhausted :-( */
|
255, /**< License free range (433.05 MHz - 434.79 MHz) exhausted :-( */
|
||||||
255, /*< License free range (433.05 MHz - 434.79 MHz) exhausted :-( */
|
255, /**< License free range (433.05 MHz - 434.79 MHz) exhausted :-( */
|
||||||
255, /*< License free range (433.05 MHz - 434.79 MHz) exhausted :-( */
|
255, /**< License free range (433.05 MHz - 434.79 MHz) exhausted :-( */
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const cc110x_chanmap_t cc110x_chanmap_433mhz_50khz = {
|
const cc110x_chanmap_t cc110x_chanmap_433mhz_50khz = {
|
||||||
.map = {
|
.map = {
|
||||||
0, /*< base + 0.000MHz = 433.100 MHz (LDP433 Channel 2) */
|
0, /**< base + 0.000MHz = 433.100 MHz (LDP433 Channel 2) */
|
||||||
4, /*< base + 0.200MHz = 433.300 MHz (LDP433 Channel 10)*/
|
4, /**< base + 0.200MHz = 433.300 MHz (LDP433 Channel 10)*/
|
||||||
8, /*< base + 0.400MHz = 433.500 MHz (LDP433 Channel 18) */
|
8, /**< base + 0.400MHz = 433.500 MHz (LDP433 Channel 18) */
|
||||||
12, /*< base + 0.600MHz = 433.700 MHz (LDP433 Channel 26) */
|
12, /**< base + 0.600MHz = 433.700 MHz (LDP433 Channel 26) */
|
||||||
16, /*< base + 0.800MHz = 433.900 MHz (LDP433 Channel 34) */
|
16, /**< base + 0.800MHz = 433.900 MHz (LDP433 Channel 34) */
|
||||||
20, /*< base + 1.000MHz = 434.100 MHz (LDP433 Channel 42) */
|
20, /**< base + 1.000MHz = 434.100 MHz (LDP433 Channel 42) */
|
||||||
24, /*< base + 1.200MHz = 434.300 MHz (LDP433 Channel 50) */
|
24, /**< base + 1.200MHz = 434.300 MHz (LDP433 Channel 50) */
|
||||||
28, /*< base + 1.400MHz = 434.500 MHz (LDP433 Channel 58) */
|
28, /**< base + 1.400MHz = 434.500 MHz (LDP433 Channel 58) */
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const cc110x_chanmap_t cc110x_chanmap_433mhz_50khz_alt = {
|
const cc110x_chanmap_t cc110x_chanmap_433mhz_50khz_alt = {
|
||||||
.map = {
|
.map = {
|
||||||
2, /*< base + 0.100MHz = 433.200 MHz (LDP433 Channel 6) */
|
2, /**< base + 0.100MHz = 433.200 MHz (LDP433 Channel 6) */
|
||||||
6, /*< base + 0.300MHz = 433.400 MHz (LDP433 Channel 14)*/
|
6, /**< base + 0.300MHz = 433.400 MHz (LDP433 Channel 14)*/
|
||||||
10, /*< base + 0.500MHz = 433.600 MHz (LDP433 Channel 22) */
|
10, /**< base + 0.500MHz = 433.600 MHz (LDP433 Channel 22) */
|
||||||
14, /*< base + 0.700MHz = 433.800 MHz (LDP433 Channel 30) */
|
14, /**< base + 0.700MHz = 433.800 MHz (LDP433 Channel 30) */
|
||||||
18, /*< base + 0.900MHz = 434.000 MHz (LDP433 Channel 38) */
|
18, /**< base + 0.900MHz = 434.000 MHz (LDP433 Channel 38) */
|
||||||
22, /*< base + 1.100MHz = 434.200 MHz (LDP433 Channel 46) */
|
22, /**< base + 1.100MHz = 434.200 MHz (LDP433 Channel 46) */
|
||||||
26, /*< base + 1.300MHz = 434.400 MHz (LDP433 Channel 54) */
|
26, /**< base + 1.300MHz = 434.400 MHz (LDP433 Channel 54) */
|
||||||
30, /*< base + 1.500MHz = 434.600 MHz (LDP433 Channel 62) */
|
30, /**< base + 1.500MHz = 434.600 MHz (LDP433 Channel 62) */
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const cc110x_chanmap_t cc110x_chanmap_868mhz_lora = {
|
const cc110x_chanmap_t cc110x_chanmap_868mhz_lora = {
|
||||||
.map = {
|
.map = {
|
||||||
0, /*< base + 0.000MHz = 865.20 MHz = LoRa868 Channel 10 */
|
0, /**< base + 0.000MHz = 865.20 MHz = LoRa868 Channel 10 */
|
||||||
6, /*< base + 0.300MHz = 865.50 MHz = LoRa868 Channel 11 */
|
6, /**< base + 0.300MHz = 865.50 MHz = LoRa868 Channel 11 */
|
||||||
12, /*< base + 0.600MHz = 865.80 MHz = LoRa868 Channel 12 */
|
12, /**< base + 0.600MHz = 865.80 MHz = LoRa868 Channel 12 */
|
||||||
18, /*< base + 0.900MHz = 866.10 MHz = LoRa868 Channel 13 */
|
18, /**< base + 0.900MHz = 866.10 MHz = LoRa868 Channel 13 */
|
||||||
24, /*< base + 1.200MHz = 866.40 MHz = LoRa868 Channel 14 */
|
24, /**< base + 1.200MHz = 866.40 MHz = LoRa868 Channel 14 */
|
||||||
30, /*< base + 1.500MHz = 866.70 MHz = LoRa868 Channel 15 */
|
30, /**< base + 1.500MHz = 866.70 MHz = LoRa868 Channel 15 */
|
||||||
36, /*< base + 1.800MHz = 867.00 MHz = LoRa868 Channel 16 */
|
36, /**< base + 1.800MHz = 867.00 MHz = LoRa868 Channel 16 */
|
||||||
56, /*< base + 2.800MHz = 868.00 MHz = LoRa868 Channel 17 */
|
56, /**< base + 2.800MHz = 868.00 MHz = LoRa868 Channel 17 */
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -327,7 +327,7 @@ static int cc110x_init(netdev_t *netdev)
|
|||||||
dev->state = CC110X_STATE_IDLE;
|
dev->state = CC110X_STATE_IDLE;
|
||||||
cc110x_release(dev);
|
cc110x_release(dev);
|
||||||
|
|
||||||
int retval; /*< Store return value to be able to pass through error code */
|
int retval; /**< Store return value to be able to pass through error code */
|
||||||
/* Apply configuration (if non-NULL) and channel map, which also calls
|
/* Apply configuration (if non-NULL) and channel map, which also calls
|
||||||
* cc110x_full_calibration
|
* cc110x_full_calibration
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -27,41 +27,41 @@
|
|||||||
const cc110x_patable_t cc110x_patable_433mhz = {
|
const cc110x_patable_t cc110x_patable_433mhz = {
|
||||||
.data = {
|
.data = {
|
||||||
/* Settings for 433 MHz */
|
/* Settings for 433 MHz */
|
||||||
0x12, /*< -30 dBm */
|
0x12, /**< -30 dBm */
|
||||||
0x0E, /*< -20 dBm */
|
0x0E, /**< -20 dBm */
|
||||||
0x1D, /*< -15 dBm */
|
0x1D, /**< -15 dBm */
|
||||||
0x34, /*< -10 dBm */
|
0x34, /**< -10 dBm */
|
||||||
0x60, /*< 0 dBm */
|
0x60, /**< 0 dBm */
|
||||||
0x84, /*< 5 dBm */
|
0x84, /**< 5 dBm */
|
||||||
0xC8, /*< 7 dBm */
|
0xC8, /**< 7 dBm */
|
||||||
0xC0, /*< 10 dBm */
|
0xC0, /**< 10 dBm */
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const cc110x_patable_t cc110x_patable_868mhz = {
|
const cc110x_patable_t cc110x_patable_868mhz = {
|
||||||
.data = {
|
.data = {
|
||||||
/* Settings for 868 MHz */
|
/* Settings for 868 MHz */
|
||||||
0x03, /*< -30 dBm */
|
0x03, /**< -30 dBm */
|
||||||
0x0F, /*< -20 dBm */
|
0x0F, /**< -20 dBm */
|
||||||
0x1E, /*< -15 dBm */
|
0x1E, /**< -15 dBm */
|
||||||
0x27, /*< -10 dBm */
|
0x27, /**< -10 dBm */
|
||||||
0x50, /*< 0 dBm */
|
0x50, /**< 0 dBm */
|
||||||
0x81, /*< 5 dBm */
|
0x81, /**< 5 dBm */
|
||||||
0xCB, /*< 7 dBm */
|
0xCB, /**< 7 dBm */
|
||||||
0xC2, /*< 10 dBm */
|
0xC2, /**< 10 dBm */
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const cc110x_patable_t cc110x_patable_915mhz = {
|
const cc110x_patable_t cc110x_patable_915mhz = {
|
||||||
.data = {
|
.data = {
|
||||||
/* Settings for 915 MHz */
|
/* Settings for 915 MHz */
|
||||||
0x03, /*< -30 dBm */
|
0x03, /**< -30 dBm */
|
||||||
0x0E, /*< -20 dBm */
|
0x0E, /**< -20 dBm */
|
||||||
0x1E, /*< -15 dBm */
|
0x1E, /**< -15 dBm */
|
||||||
0x27, /*< -10 dBm */
|
0x27, /**< -10 dBm */
|
||||||
0x8E, /*< 0 dBm */
|
0x8E, /**< 0 dBm */
|
||||||
0xCD, /*< 5 dBm */
|
0xCD, /**< 5 dBm */
|
||||||
0xC7, /*< 7 dBm */
|
0xC7, /**< 7 dBm */
|
||||||
0xC0, /*< 10 dBm */
|
0xC0, /**< 10 dBm */
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -61,8 +61,8 @@ const uint8_t cc110x_conf[CC110X_CONF_SIZE] = {
|
|||||||
* SYNC1, SYNC0; defaults: 0xD3, 0x91
|
* SYNC1, SYNC0; defaults: 0xD3, 0x91
|
||||||
* Use 0xD3,0x91 as sync word
|
* Use 0xD3,0x91 as sync word
|
||||||
*/
|
*/
|
||||||
0xD3, /*< SYNC1 */
|
0xD3, /**< SYNC1 */
|
||||||
0x91, /*< SYNC0 */
|
0x91, /**< SYNC0 */
|
||||||
/*
|
/*
|
||||||
* PKTLEN; default: 0xFF
|
* PKTLEN; default: 0xFF
|
||||||
* Packet length in bytes in fixed length mode, else maximum length
|
* Packet length in bytes in fixed length mode, else maximum length
|
||||||
@ -126,9 +126,9 @@ const uint8_t cc110x_conf[CC110X_CONF_SIZE] = {
|
|||||||
* Default is 800.000 MHz, which is not in a license free frequency band.
|
* Default is 800.000 MHz, which is not in a license free frequency band.
|
||||||
* Using LoRa channel 10 instead.
|
* Using LoRa channel 10 instead.
|
||||||
*/
|
*/
|
||||||
0x21, /*< FREQ2 */
|
0x21, /**< FREQ2 */
|
||||||
0x46, /*< FREQ1 */
|
0x46, /**< FREQ1 */
|
||||||
0xE4, /*< FREQ0 */
|
0xE4, /**< FREQ0 */
|
||||||
/*
|
/*
|
||||||
* MDMCFG4, MDMCFG3; defaults: 0x8C, 0x22
|
* MDMCFG4, MDMCFG3; defaults: 0x8C, 0x22
|
||||||
* 541.67 kHz channel filter bandwidth,
|
* 541.67 kHz channel filter bandwidth,
|
||||||
@ -144,8 +144,8 @@ const uint8_t cc110x_conf[CC110X_CONF_SIZE] = {
|
|||||||
* - 540 kHz channel filter bandwidth
|
* - 540 kHz channel filter bandwidth
|
||||||
* - 127 kHz deviation
|
* - 127 kHz deviation
|
||||||
*/
|
*/
|
||||||
0x2D, /*< MDMCFG4 */
|
0x2D, /**< MDMCFG4 */
|
||||||
0x3B, /*< MDMCFG3 */
|
0x3B, /**< MDMCFG3 */
|
||||||
/*
|
/*
|
||||||
* MDMCFG2; default: 0x02
|
* MDMCFG2; default: 0x02
|
||||||
* DC blocking filter on,
|
* DC blocking filter on,
|
||||||
@ -176,8 +176,8 @@ const uint8_t cc110x_conf[CC110X_CONF_SIZE] = {
|
|||||||
* a resolution of 50kHz - this seems to allow to configure all desired
|
* a resolution of 50kHz - this seems to allow to configure all desired
|
||||||
* channel layouts.
|
* channel layouts.
|
||||||
*/
|
*/
|
||||||
0x20, /*< MDMCFG1 */
|
0x20, /**< MDMCFG1 */
|
||||||
0xF8, /*< MDMCFG0 */
|
0xF8, /**< MDMCFG0 */
|
||||||
/*
|
/*
|
||||||
* DEVIATN; default: 0x47
|
* DEVIATN; default: 0x47
|
||||||
* Deviation of frequency to encode data: +- 126.953kHz in 2-FSK/4-FSK/GFSK
|
* Deviation of frequency to encode data: +- 126.953kHz in 2-FSK/4-FSK/GFSK
|
||||||
@ -272,9 +272,9 @@ const uint8_t cc110x_conf[CC110X_CONF_SIZE] = {
|
|||||||
* RC oscillator calibration: Enabled
|
* RC oscillator calibration: Enabled
|
||||||
* WOR_RES: 0 (Relevant for Event0 resolution and maximum timeout)
|
* WOR_RES: 0 (Relevant for Event0 resolution and maximum timeout)
|
||||||
*/
|
*/
|
||||||
0x87, /*< WOREVT1 */
|
0x87, /**< WOREVT1 */
|
||||||
0x6B, /*< WOREVT0 */
|
0x6B, /**< WOREVT0 */
|
||||||
0xF8, /*< WORCTRL */
|
0xF8, /**< WORCTRL */
|
||||||
/*
|
/*
|
||||||
* FREND1; default: 0x56
|
* FREND1; default: 0x56
|
||||||
* LNA_CURRENT: 0b01
|
* LNA_CURRENT: 0b01
|
||||||
@ -315,16 +315,16 @@ const uint8_t cc110x_conf[CC110X_CONF_SIZE] = {
|
|||||||
* Using "magic" values obtained with SmartRF Studio software for 868 MHz
|
* Using "magic" values obtained with SmartRF Studio software for 868 MHz
|
||||||
* band.
|
* band.
|
||||||
*/
|
*/
|
||||||
0xEA, /*< FSCAL3: charge pump current calibration, frequency independent */
|
0xEA, /**< FSCAL3: charge pump current calibration, frequency independent */
|
||||||
0x2A, /*< FSCAL2: VCO current calibration, frequency independent */
|
0x2A, /**< FSCAL2: VCO current calibration, frequency independent */
|
||||||
0x00, /*< FSCAL1: VCO capacitance calibration, frequency dependent */
|
0x00, /**< FSCAL1: VCO capacitance calibration, frequency dependent */
|
||||||
0x1F, /*< FSCAL0: "Magic number", use SmartRF Studio to obtain */
|
0x1F, /**< FSCAL0: "Magic number", use SmartRF Studio to obtain */
|
||||||
/*
|
/*
|
||||||
* RCCTRL1, RCCTRL0; defaults: 0x41, 0x00
|
* RCCTRL1, RCCTRL0; defaults: 0x41, 0x00
|
||||||
* RC oscillator configuration, no explanation given in data sheet.
|
* RC oscillator configuration, no explanation given in data sheet.
|
||||||
*/
|
*/
|
||||||
0x41, /*< RCCTRL1 */
|
0x41, /**< RCCTRL1 */
|
||||||
0x00, /*< RCCTRL0 */
|
0x00, /**< RCCTRL0 */
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t cc110x_magic_registers[3] = { 0x88, 0x31, 0x09 };
|
const uint8_t cc110x_magic_registers[3] = { 0x88, 0x31, 0x09 };
|
||||||
|
|||||||
@ -39,7 +39,7 @@ static int _set_power(const hts221_t *dev, const bool active);
|
|||||||
* @note This function does not acquire or release the I2C bus, must be done
|
* @note This function does not acquire or release the I2C bus, must be done
|
||||||
* in calling function!
|
* in calling function!
|
||||||
*
|
*
|
||||||
* @param[in|out] dev device descriptor of sensor
|
* @param[in,out] dev device descriptor of sensor
|
||||||
*
|
*
|
||||||
* @returns HTS221_OK on success, or error otherwise
|
* @returns HTS221_OK on success, or error otherwise
|
||||||
*/
|
*/
|
||||||
@ -88,7 +88,7 @@ int _humidity_calibration(hts221_t *dev)
|
|||||||
* @note This function does not acquire or release the I2C bus, must be done
|
* @note This function does not acquire or release the I2C bus, must be done
|
||||||
* in calling function!
|
* in calling function!
|
||||||
*
|
*
|
||||||
* @param[in|out] dev device descriptor of sensor
|
* @param[in,out] dev device descriptor of sensor
|
||||||
*
|
*
|
||||||
* @returns HTS221_OK on success, or error otherwise
|
* @returns HTS221_OK on success, or error otherwise
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -54,7 +54,7 @@
|
|||||||
*
|
*
|
||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if i2c bus acquirement failed
|
* @return -EIO, if i2c bus acquirement failed
|
||||||
* @return @see i2c_read_regs
|
* @return Same as @ref i2c_read_regs
|
||||||
*/
|
*/
|
||||||
static int _read_reg(const ina3221_t *dev, uint8_t reg, uint16_t *out)
|
static int _read_reg(const ina3221_t *dev, uint8_t reg, uint16_t *out)
|
||||||
{
|
{
|
||||||
@ -80,7 +80,7 @@ static int _read_reg(const ina3221_t *dev, uint8_t reg, uint16_t *out)
|
|||||||
*
|
*
|
||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if i2c bus acquirement failed
|
* @return -EIO, if i2c bus acquirement failed
|
||||||
* @return @see i2c_write_regs
|
* @return Same as @ref i2c_write_regs
|
||||||
*/
|
*/
|
||||||
static int _write_reg(const ina3221_t *dev, uint8_t reg, uint16_t in)
|
static int _write_reg(const ina3221_t *dev, uint8_t reg, uint16_t in)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -103,9 +103,6 @@ typedef struct {
|
|||||||
* @param[in] params device parameters
|
* @param[in] params device parameters
|
||||||
* @param[in] index index of @p params in a global parameter struct array.
|
* @param[in] index index of @p params in a global parameter struct array.
|
||||||
* If initialized manually, pass a unique identifier instead.
|
* If initialized manually, pass a unique identifier instead.
|
||||||
*
|
|
||||||
* @return 0 on success
|
|
||||||
* @return -1 on error
|
|
||||||
*/
|
*/
|
||||||
void cc2420_setup(cc2420_t *dev, const cc2420_params_t *params, uint8_t index);
|
void cc2420_setup(cc2420_t *dev, const cc2420_params_t *params, uint8_t index);
|
||||||
|
|
||||||
@ -159,8 +156,6 @@ void cc2420_set_addr_short(cc2420_t *dev, const uint8_t *addr);
|
|||||||
*
|
*
|
||||||
* @param[in] dev device to read from
|
* @param[in] dev device to read from
|
||||||
* @param[out] addr_long buffer to save the read address
|
* @param[out] addr_long buffer to save the read address
|
||||||
*
|
|
||||||
* @return the currently set (8-byte) long address
|
|
||||||
*/
|
*/
|
||||||
void cc2420_get_addr_long(cc2420_t *dev, uint8_t *addr_long);
|
void cc2420_get_addr_long(cc2420_t *dev, uint8_t *addr_long);
|
||||||
|
|
||||||
|
|||||||
@ -354,8 +354,8 @@ typedef struct {
|
|||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return -ENODEV, if device could not be reset
|
* @return -ENODEV, if device could not be reset
|
||||||
* @return @see i2c_read_regs
|
* @return See @ref i2c_read_regs
|
||||||
* @return @see i2c_write_regs
|
* @return See @ref i2c_write_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_reset(ina3221_t *dev);
|
int ina3221_reset(ina3221_t *dev);
|
||||||
|
|
||||||
@ -371,8 +371,8 @@ int ina3221_reset(ina3221_t *dev);
|
|||||||
* @return -ENXIO, if manufacturer ID or DIE ID does not match
|
* @return -ENXIO, if manufacturer ID or DIE ID does not match
|
||||||
* @return -ENODEV, if reset failed
|
* @return -ENODEV, if reset failed
|
||||||
* @return -EINVAL, if configuration could not be applied
|
* @return -EINVAL, if configuration could not be applied
|
||||||
* @return @see i2c_read_regs
|
* @return See @ref i2c_read_regs
|
||||||
* @return @see i2c_write_regs
|
* @return See @ref i2c_write_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_init(ina3221_t *dev, const ina3221_params_t *params);
|
int ina3221_init(ina3221_t *dev, const ina3221_params_t *params);
|
||||||
|
|
||||||
@ -672,7 +672,7 @@ static inline void ina3221_config_set_mode(uint16_t *cfg,
|
|||||||
*
|
*
|
||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_write_regs
|
* @return See @ref i2c_write_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_set_config(ina3221_t *dev, uint16_t cfg);
|
int ina3221_set_config(ina3221_t *dev, uint16_t cfg);
|
||||||
|
|
||||||
@ -684,7 +684,7 @@ int ina3221_set_config(ina3221_t *dev, uint16_t cfg);
|
|||||||
*
|
*
|
||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_read_regs
|
* @return See @ref i2c_read_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_get_config(const ina3221_t *dev, uint16_t *cfg);
|
int ina3221_get_config(const ina3221_t *dev, uint16_t *cfg);
|
||||||
|
|
||||||
@ -696,8 +696,8 @@ int ina3221_get_config(const ina3221_t *dev, uint16_t *cfg);
|
|||||||
*
|
*
|
||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_read_regs
|
* @return See @ref i2c_read_regs
|
||||||
* @return @see i2c_write_regs
|
* @return See @ref i2c_write_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_set_enable_channel(ina3221_t *dev, ina3221_ch_t ch);
|
int ina3221_set_enable_channel(ina3221_t *dev, ina3221_ch_t ch);
|
||||||
|
|
||||||
@ -721,8 +721,8 @@ static inline void ina3221_get_enable_channel(const ina3221_t *dev,
|
|||||||
*
|
*
|
||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_read_regs
|
* @return See @ref i2c_read_regs
|
||||||
* @return @see i2c_write_regs
|
* @return See @ref i2c_write_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_set_num_samples(ina3221_t *dev, ina3221_num_samples_t ns);
|
int ina3221_set_num_samples(ina3221_t *dev, ina3221_num_samples_t ns);
|
||||||
|
|
||||||
@ -746,8 +746,8 @@ static inline void ina3221_get_num_samples(const ina3221_t *dev,
|
|||||||
*
|
*
|
||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_read_regs
|
* @return See @ref i2c_read_regs
|
||||||
* @return @see i2c_write_regs
|
* @return See @ref i2c_write_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_set_conv_time_bus_adc(ina3221_t *dev,
|
int ina3221_set_conv_time_bus_adc(ina3221_t *dev,
|
||||||
ina3221_conv_time_bus_adc_t ctb);
|
ina3221_conv_time_bus_adc_t ctb);
|
||||||
@ -772,8 +772,8 @@ static inline void ina3221_get_conv_time_bus_adc(const ina3221_t *dev,
|
|||||||
*
|
*
|
||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_read_regs
|
* @return See @ref i2c_read_regs
|
||||||
* @return @see i2c_write_regs
|
* @return See @ref i2c_write_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_set_conv_time_shunt_adc(ina3221_t *dev,
|
int ina3221_set_conv_time_shunt_adc(ina3221_t *dev,
|
||||||
ina3221_conv_time_shunt_adc_t cts);
|
ina3221_conv_time_shunt_adc_t cts);
|
||||||
@ -798,8 +798,8 @@ static inline void ina3221_get_conv_time_shunt_adc(const ina3221_t *dev,
|
|||||||
*
|
*
|
||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_read_regs
|
* @return See @ref i2c_read_regs
|
||||||
* @return @see i2c_write_regs
|
* @return See @ref i2c_write_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_set_mode(ina3221_t *dev, ina3221_mode_t mode);
|
int ina3221_set_mode(ina3221_t *dev, ina3221_mode_t mode);
|
||||||
|
|
||||||
@ -825,8 +825,8 @@ static inline void ina3221_get_mode(const ina3221_t *dev, ina3221_mode_t *mode)
|
|||||||
*
|
*
|
||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_read_regs
|
* @return See @ref i2c_read_regs
|
||||||
* @return @see i2c_write_regs
|
* @return See @ref i2c_write_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_set_enable_sum_channel(const ina3221_t *dev, ina3221_ch_t ch);
|
int ina3221_set_enable_sum_channel(const ina3221_t *dev, ina3221_ch_t ch);
|
||||||
|
|
||||||
@ -838,7 +838,7 @@ int ina3221_set_enable_sum_channel(const ina3221_t *dev, ina3221_ch_t ch);
|
|||||||
*
|
*
|
||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_read_regs
|
* @return See @ref i2c_read_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_get_enable_sum_channel(const ina3221_t *dev, ina3221_ch_t *ch);
|
int ina3221_get_enable_sum_channel(const ina3221_t *dev, ina3221_ch_t *ch);
|
||||||
|
|
||||||
@ -851,8 +851,8 @@ int ina3221_get_enable_sum_channel(const ina3221_t *dev, ina3221_ch_t *ch);
|
|||||||
*
|
*
|
||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_read_regs
|
* @return See @ref i2c_read_regs
|
||||||
* @return @see i2c_write_regs
|
* @return See @ref i2c_write_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_set_latch(const ina3221_t *dev, bool warn, bool crit);
|
int ina3221_set_latch(const ina3221_t *dev, bool warn, bool crit);
|
||||||
|
|
||||||
@ -865,7 +865,7 @@ int ina3221_set_latch(const ina3221_t *dev, bool warn, bool crit);
|
|||||||
*
|
*
|
||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_read_regs
|
* @return See @ref i2c_read_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_get_latch(const ina3221_t *dev, bool *warn, bool *crit);
|
int ina3221_get_latch(const ina3221_t *dev, bool *warn, bool *crit);
|
||||||
|
|
||||||
@ -926,7 +926,7 @@ ina3221_ch_t ina3221_get_warn_alert_limit(const ina3221_t *dev, ina3221_ch_t ch,
|
|||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -ERANGE, if @p in_uv was not in [INA3221_MIN_SHUNT_SUM_UV; INA3221_MAX_SHUNT_SUM_UV]
|
* @return -ERANGE, if @p in_uv was not in [INA3221_MIN_SHUNT_SUM_UV; INA3221_MAX_SHUNT_SUM_UV]
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_write_regs
|
* @return See @ref i2c_write_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_set_shunt_voltage_sum_alert_limit(const ina3221_t *dev,
|
int ina3221_set_shunt_voltage_sum_alert_limit(const ina3221_t *dev,
|
||||||
int32_t in_uv);
|
int32_t in_uv);
|
||||||
@ -939,7 +939,7 @@ int ina3221_set_shunt_voltage_sum_alert_limit(const ina3221_t *dev,
|
|||||||
*
|
*
|
||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_read_regs
|
* @return See @ref i2c_read_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_get_shunt_voltage_sum_alert_limit(const ina3221_t *dev,
|
int ina3221_get_shunt_voltage_sum_alert_limit(const ina3221_t *dev,
|
||||||
int32_t *out_uv);
|
int32_t *out_uv);
|
||||||
@ -953,7 +953,7 @@ int ina3221_get_shunt_voltage_sum_alert_limit(const ina3221_t *dev,
|
|||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -ERANGE, if @p in_mv was not in [INA3221_MIN_BUS_MV; INA3221_MAX_BUS_MV]
|
* @return -ERANGE, if @p in_mv was not in [INA3221_MIN_BUS_MV; INA3221_MAX_BUS_MV]
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_write_regs
|
* @return See @ref i2c_write_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_set_power_valid_upper_limit(const ina3221_t *dev, int32_t in_mv);
|
int ina3221_set_power_valid_upper_limit(const ina3221_t *dev, int32_t in_mv);
|
||||||
|
|
||||||
@ -965,7 +965,7 @@ int ina3221_set_power_valid_upper_limit(const ina3221_t *dev, int32_t in_mv);
|
|||||||
*
|
*
|
||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_read_regs
|
* @return See @ref i2c_read_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_get_power_valid_upper_limit(const ina3221_t *dev, int32_t *out_mv);
|
int ina3221_get_power_valid_upper_limit(const ina3221_t *dev, int32_t *out_mv);
|
||||||
|
|
||||||
@ -978,7 +978,7 @@ int ina3221_get_power_valid_upper_limit(const ina3221_t *dev, int32_t *out_mv);
|
|||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -ERANGE, if @p in_mv was not in [INA3221_MIN_BUS_MV; INA3221_MAX_BUS_MV]
|
* @return -ERANGE, if @p in_mv was not in [INA3221_MIN_BUS_MV; INA3221_MAX_BUS_MV]
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_write_regs
|
* @return See @ref i2c_write_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_set_power_valid_lower_limit(const ina3221_t *dev, int32_t in_mv);
|
int ina3221_set_power_valid_lower_limit(const ina3221_t *dev, int32_t in_mv);
|
||||||
|
|
||||||
@ -990,7 +990,7 @@ int ina3221_set_power_valid_lower_limit(const ina3221_t *dev, int32_t in_mv);
|
|||||||
*
|
*
|
||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_read_regs
|
* @return See @ref i2c_read_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_get_power_valid_lower_limit(const ina3221_t *dev, int32_t *out_mv);
|
int ina3221_get_power_valid_lower_limit(const ina3221_t *dev, int32_t *out_mv);
|
||||||
|
|
||||||
@ -1002,7 +1002,7 @@ int ina3221_get_power_valid_lower_limit(const ina3221_t *dev, int32_t *out_mv);
|
|||||||
*
|
*
|
||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_read_regs
|
* @return See @ref i2c_read_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_read_flags(const ina3221_t *dev, uint16_t *flags);
|
int ina3221_read_flags(const ina3221_t *dev, uint16_t *flags);
|
||||||
|
|
||||||
@ -1015,7 +1015,7 @@ int ina3221_read_flags(const ina3221_t *dev, uint16_t *flags);
|
|||||||
*
|
*
|
||||||
* @return 0, on success
|
* @return 0, on success
|
||||||
* @return -EIO, if I2C bus acquirement failed
|
* @return -EIO, if I2C bus acquirement failed
|
||||||
* @return @see i2c_read_regs
|
* @return See @ref i2c_read_regs
|
||||||
*/
|
*/
|
||||||
int ina3221_read_shunt_sum_uv(const ina3221_t *dev, int32_t *out_uv,
|
int ina3221_read_shunt_sum_uv(const ina3221_t *dev, int32_t *out_uv,
|
||||||
uint16_t *flags);
|
uint16_t *flags);
|
||||||
|
|||||||
@ -141,8 +141,8 @@ typedef struct {
|
|||||||
/**
|
/**
|
||||||
* @brief initializes the sensor and i2c
|
* @brief initializes the sensor and i2c
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
* @param[in] *params pointer to lc709203f_param_t struct containing the interrupt pin and callback
|
* @param[in] params pointer to lc709203f_param_t struct containing the interrupt pin and callback
|
||||||
*
|
*
|
||||||
* @return LC709203F_OK on a working initialization
|
* @return LC709203F_OK on a working initialization
|
||||||
* @return LC709203F_NOI2C on undefined i2c device given in periph_conf
|
* @return LC709203F_NOI2C on undefined i2c device given in periph_conf
|
||||||
@ -152,7 +152,7 @@ int lc709203f_init(lc709203f_t *dev, const lc709203f_params_t *params);
|
|||||||
/**
|
/**
|
||||||
* @brief reads battery voltage from Sensor
|
* @brief reads battery voltage from Sensor
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
*
|
*
|
||||||
* @return voltage in mV
|
* @return voltage in mV
|
||||||
*/
|
*/
|
||||||
@ -161,7 +161,7 @@ int16_t lc709203f_get_voltage(const lc709203f_t *dev);
|
|||||||
/**
|
/**
|
||||||
* @brief reads battery state of charge from Sensor
|
* @brief reads battery state of charge from Sensor
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
*
|
*
|
||||||
* @return rsoc in %
|
* @return rsoc in %
|
||||||
*/
|
*/
|
||||||
@ -170,7 +170,7 @@ int16_t lc709203f_get_rsoc(const lc709203f_t *dev);
|
|||||||
/**
|
/**
|
||||||
* @brief reads battery indicator to empty from Sensor
|
* @brief reads battery indicator to empty from Sensor
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
*
|
*
|
||||||
* @return ite in 0.1%
|
* @return ite in 0.1%
|
||||||
*/
|
*/
|
||||||
@ -179,7 +179,7 @@ int16_t lc709203f_get_ite(const lc709203f_t *dev);
|
|||||||
/**
|
/**
|
||||||
* @brief reads Sensor id
|
* @brief reads Sensor id
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
*
|
*
|
||||||
* @return id value
|
* @return id value
|
||||||
*/
|
*/
|
||||||
@ -188,7 +188,7 @@ int16_t lc709203f_get_id(const lc709203f_t *dev);
|
|||||||
/**
|
/**
|
||||||
* @brief reads cell temperature from sensor
|
* @brief reads cell temperature from sensor
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
*
|
*
|
||||||
* @return temp in 0.1°C steps
|
* @return temp in 0.1°C steps
|
||||||
*/
|
*/
|
||||||
@ -197,7 +197,7 @@ int16_t lc709203f_get_cell_temp(const lc709203f_t *dev);
|
|||||||
/**
|
/**
|
||||||
* @brief reads status bit register (Temperature obtaining mode)
|
* @brief reads status bit register (Temperature obtaining mode)
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
*
|
*
|
||||||
* @return THERMISTOR_MODE Thermistor mode
|
* @return THERMISTOR_MODE Thermistor mode
|
||||||
* @return I2C_MODE I2C Mode
|
* @return I2C_MODE I2C Mode
|
||||||
@ -207,7 +207,7 @@ lc709203f_temp_obtaining_mode_t lc709203f_get_status_bit(const lc709203f_t *dev)
|
|||||||
/**
|
/**
|
||||||
* @brief reads IC Power Mode register
|
* @brief reads IC Power Mode register
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
*
|
*
|
||||||
* @return OPERATIONAL_MODE Operational Mode
|
* @return OPERATIONAL_MODE Operational Mode
|
||||||
* @return SLEEP_MODE Sleep mode
|
* @return SLEEP_MODE Sleep mode
|
||||||
@ -217,7 +217,7 @@ lc709203f_power_mode_t lc709203f_get_power_mode(const lc709203f_t *dev);
|
|||||||
/**
|
/**
|
||||||
* @brief reads Alarm Low Cell Voltage Register
|
* @brief reads Alarm Low Cell Voltage Register
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
*
|
*
|
||||||
* @return 0 Disable
|
* @return 0 Disable
|
||||||
* @return Threshold value in 1mV steps
|
* @return Threshold value in 1mV steps
|
||||||
@ -227,7 +227,7 @@ int16_t lc709203f_get_alarm_low_voltage(const lc709203f_t *dev);
|
|||||||
/**
|
/**
|
||||||
* @brief reads Alarm Low RSOC Register
|
* @brief reads Alarm Low RSOC Register
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
*
|
*
|
||||||
* @return 0 Disable
|
* @return 0 Disable
|
||||||
* @return Threshold value in %
|
* @return Threshold value in %
|
||||||
@ -237,7 +237,7 @@ int16_t lc709203f_get_alarm_low_rsoc(const lc709203f_t *dev);
|
|||||||
/**
|
/**
|
||||||
* @brief reads Change of the Parameter register, Battery Profile selection
|
* @brief reads Change of the Parameter register, Battery Profile selection
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
*
|
*
|
||||||
* @return Battery profile number (1 or 0)
|
* @return Battery profile number (1 or 0)
|
||||||
*/
|
*/
|
||||||
@ -247,7 +247,7 @@ int16_t lc709203f_get_change_of_parameter(const lc709203f_t *dev);
|
|||||||
* @brief reads APT (Adjustment Pack Thermistor)
|
* @brief reads APT (Adjustment Pack Thermistor)
|
||||||
* value to adjust temperature measurement delay timing.
|
* value to adjust temperature measurement delay timing.
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
*
|
*
|
||||||
* @return value to adjust temperature measurement delay timing.
|
* @return value to adjust temperature measurement delay timing.
|
||||||
*/
|
*/
|
||||||
@ -257,7 +257,7 @@ int16_t lc709203f_get_apt(const lc709203f_t *dev);
|
|||||||
* @brief reads APA (Adjustment Pack Application) in 1mOhm steps
|
* @brief reads APA (Adjustment Pack Application) in 1mOhm steps
|
||||||
* value to adjust temperature measurement delay timing.
|
* value to adjust temperature measurement delay timing.
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
*
|
*
|
||||||
* @return parasitic impedance
|
* @return parasitic impedance
|
||||||
*/
|
*/
|
||||||
@ -266,7 +266,7 @@ int16_t lc709203f_get_apa(const lc709203f_t *dev);
|
|||||||
/**
|
/**
|
||||||
* @brief reads Current Direction Register
|
* @brief reads Current Direction Register
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
*
|
*
|
||||||
* @return AUTO_MODE Auto mode
|
* @return AUTO_MODE Auto mode
|
||||||
* @return CHARGE_MODE charge mode
|
* @return CHARGE_MODE charge mode
|
||||||
@ -277,7 +277,7 @@ lc709203f_current_direction_t lc709203f_get_current_direction(const lc709203f_t
|
|||||||
/**
|
/**
|
||||||
* @brief reads Thermistor-B register (Thermistor B constant to be measured)
|
* @brief reads Thermistor-B register (Thermistor B constant to be measured)
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
*
|
*
|
||||||
* @return B Value in 1K steps
|
* @return B Value in 1K steps
|
||||||
*/
|
*/
|
||||||
@ -286,14 +286,14 @@ int16_t lc709203f_get_thermistor_b(const lc709203f_t *dev);
|
|||||||
/**
|
/**
|
||||||
* @brief Executes RSOC initialization with sampled maximum voltage
|
* @brief Executes RSOC initialization with sampled maximum voltage
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
*/
|
*/
|
||||||
void lc709203f_set_rsoc_before(const lc709203f_t *dev);
|
void lc709203f_set_rsoc_before(const lc709203f_t *dev);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Sets B constant of the Thermistor
|
* @brief Sets B constant of the Thermistor
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
* @param[in] value Bconstant of thermistor
|
* @param[in] value Bconstant of thermistor
|
||||||
*/
|
*/
|
||||||
void lc709203f_set_thermistor_b(const lc709203f_t *dev, const unsigned int value);
|
void lc709203f_set_thermistor_b(const lc709203f_t *dev, const unsigned int value);
|
||||||
@ -301,14 +301,14 @@ void lc709203f_set_thermistor_b(const lc709203f_t *dev, const unsigned int value
|
|||||||
/**
|
/**
|
||||||
* @brief Executes RSOC initialization
|
* @brief Executes RSOC initialization
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
*/
|
*/
|
||||||
void lc709203f_set_rsoc_initial(const lc709203f_t *dev);
|
void lc709203f_set_rsoc_initial(const lc709203f_t *dev);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Sets cell temperature in I2C-mode
|
* @brief Sets cell temperature in I2C-mode
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
* @param[in] value temp in 0.1K 0xAAC=0°C
|
* @param[in] value temp in 0.1K 0xAAC=0°C
|
||||||
*
|
*
|
||||||
* @return LC709203F_CELL_TEMP_INVALID Invalid cell temp
|
* @return LC709203F_CELL_TEMP_INVALID Invalid cell temp
|
||||||
@ -319,7 +319,7 @@ int8_t lc709203f_set_cell_temp(const lc709203f_t *dev, const unsigned int value)
|
|||||||
/**
|
/**
|
||||||
* @brief Sets current direction
|
* @brief Sets current direction
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
* @param[in] direction current direction, AUTO_MODE, CHARGE_MODE, DISCHARGE_MODE
|
* @param[in] direction current direction, AUTO_MODE, CHARGE_MODE, DISCHARGE_MODE
|
||||||
*/
|
*/
|
||||||
void lc709203f_set_current_direction(const lc709203f_t *dev, const lc709203f_current_direction_t direction);
|
void lc709203f_set_current_direction(const lc709203f_t *dev, const lc709203f_current_direction_t direction);
|
||||||
@ -327,7 +327,7 @@ void lc709203f_set_current_direction(const lc709203f_t *dev, const lc709203f_cur
|
|||||||
/**
|
/**
|
||||||
* @brief Sets parasitic impedance (adjustment pack application)
|
* @brief Sets parasitic impedance (adjustment pack application)
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
* @param[in] value impedance in 1mOhm steps
|
* @param[in] value impedance in 1mOhm steps
|
||||||
*/
|
*/
|
||||||
void lc709203f_set_apa(const lc709203f_t *dev, const uint8_t value);
|
void lc709203f_set_apa(const lc709203f_t *dev, const uint8_t value);
|
||||||
@ -335,7 +335,7 @@ void lc709203f_set_apa(const lc709203f_t *dev, const uint8_t value);
|
|||||||
/**
|
/**
|
||||||
* @brief Sets value to adjust temperature measurement delay timing (adjusmtent pack thermistor)
|
* @brief Sets value to adjust temperature measurement delay timing (adjusmtent pack thermistor)
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
* @param[in] value adjustment value
|
* @param[in] value adjustment value
|
||||||
*/
|
*/
|
||||||
void lc709203f_set_apt(const lc709203f_t *dev, const unsigned int value);
|
void lc709203f_set_apt(const lc709203f_t *dev, const unsigned int value);
|
||||||
@ -343,7 +343,7 @@ void lc709203f_set_apt(const lc709203f_t *dev, const unsigned int value);
|
|||||||
/**
|
/**
|
||||||
* @brief Sets battery profile
|
* @brief Sets battery profile
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
* @param[in] value profile (enum) BAT_PROFILE_1 BAT_PROFILE_2
|
* @param[in] value profile (enum) BAT_PROFILE_1 BAT_PROFILE_2
|
||||||
*/
|
*/
|
||||||
void lc709203f_set_change_of_parameter(const lc709203f_t *dev, const lc709203f_battery_profile_t value);
|
void lc709203f_set_change_of_parameter(const lc709203f_t *dev, const lc709203f_battery_profile_t value);
|
||||||
@ -351,7 +351,7 @@ void lc709203f_set_change_of_parameter(const lc709203f_t *dev, const lc709203f_b
|
|||||||
/**
|
/**
|
||||||
* @brief Sets threshold for low rsoc alert
|
* @brief Sets threshold for low rsoc alert
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
* @param[in] value alert threshold (0-100%)
|
* @param[in] value alert threshold (0-100%)
|
||||||
*/
|
*/
|
||||||
void lc709203f_set_alarm_low_rsoc(const lc709203f_t *dev, const uint8_t value);
|
void lc709203f_set_alarm_low_rsoc(const lc709203f_t *dev, const uint8_t value);
|
||||||
@ -359,7 +359,7 @@ void lc709203f_set_alarm_low_rsoc(const lc709203f_t *dev, const uint8_t value);
|
|||||||
/**
|
/**
|
||||||
* @brief Sets threshold for low cell voltage alert
|
* @brief Sets threshold for low cell voltage alert
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
* @param[in] value alert threshold in 1mV steps
|
* @param[in] value alert threshold in 1mV steps
|
||||||
*/
|
*/
|
||||||
void lc709203f_set_alarm_low_cell_voltage(const lc709203f_t *dev, const unsigned int value);
|
void lc709203f_set_alarm_low_cell_voltage(const lc709203f_t *dev, const unsigned int value);
|
||||||
@ -367,7 +367,7 @@ void lc709203f_set_alarm_low_cell_voltage(const lc709203f_t *dev, const unsigned
|
|||||||
/**
|
/**
|
||||||
* @brief Sets power mode
|
* @brief Sets power mode
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
* @param[in] value Power mode (enum) OPERATIONAL_MODE, SLEEP_MODE
|
* @param[in] value Power mode (enum) OPERATIONAL_MODE, SLEEP_MODE
|
||||||
*/
|
*/
|
||||||
void lc709203f_set_power_mode(const lc709203f_t *dev, const lc709203f_power_mode_t value);
|
void lc709203f_set_power_mode(const lc709203f_t *dev, const lc709203f_power_mode_t value);
|
||||||
@ -375,7 +375,7 @@ void lc709203f_set_power_mode(const lc709203f_t *dev, const lc709203f_power_mode
|
|||||||
/**
|
/**
|
||||||
* @brief Sets temperature obtaining method
|
* @brief Sets temperature obtaining method
|
||||||
*
|
*
|
||||||
* @param[in] *dev pointer to lc709203f_t struct containing the i2c device and the address
|
* @param[in] dev pointer to lc709203f_t struct containing the i2c device and the address
|
||||||
* @param[in] value method to be used (enum) I2C_MODE, THERMISTOR_MODE
|
* @param[in] value method to be used (enum) I2C_MODE, THERMISTOR_MODE
|
||||||
*/
|
*/
|
||||||
void lc709203f_set_status_bit(const lc709203f_t *dev, const lc709203f_temp_obtaining_mode_t value);
|
void lc709203f_set_status_bit(const lc709203f_t *dev, const lc709203f_temp_obtaining_mode_t value);
|
||||||
|
|||||||
@ -136,7 +136,7 @@ int lm75_get_temperature(lm75_t *dev, int *temperature);
|
|||||||
* @param[in] temp_os desired OS temperature in mºC
|
* @param[in] temp_os desired OS temperature in mºC
|
||||||
* @param[in] temp_hyst desired HYST temperature in mºC
|
* @param[in] temp_hyst desired HYST temperature in mºC
|
||||||
* @param[in] cb callback that is called from interrupt context
|
* @param[in] cb callback that is called from interrupt context
|
||||||
* @param[in] *arg optional arguments for the gpio_init_int function
|
* @param[in] arg optional arguments for the gpio_init_int function
|
||||||
*
|
*
|
||||||
* @return LM75_SUCCESS, on success
|
* @return LM75_SUCCESS, on success
|
||||||
* @return LM75_ERROR_I2C, on I2C related error
|
* @return LM75_ERROR_I2C, on I2C related error
|
||||||
|
|||||||
@ -284,8 +284,6 @@ int mcp47xx_dac_init(mcp47xx_t *dev, uint8_t chn);
|
|||||||
* @param[in] dev descriptor of the MCP47xx DAC device
|
* @param[in] dev descriptor of the MCP47xx DAC device
|
||||||
* @param[in] chn channel to set
|
* @param[in] chn channel to set
|
||||||
* @param[in] value value to set line to
|
* @param[in] value value to set line to
|
||||||
*
|
|
||||||
* @retval none
|
|
||||||
*/
|
*/
|
||||||
void mcp47xx_dac_set(mcp47xx_t *dev, uint8_t chn, uint16_t value);
|
void mcp47xx_dac_set(mcp47xx_t *dev, uint8_t chn, uint16_t value);
|
||||||
|
|
||||||
@ -298,8 +296,6 @@ void mcp47xx_dac_set(mcp47xx_t *dev, uint8_t chn, uint16_t value);
|
|||||||
* @param[in] dev descriptor of the MCP47xx DAC device
|
* @param[in] dev descriptor of the MCP47xx DAC device
|
||||||
* @param[in] chn channel to set
|
* @param[in] chn channel to set
|
||||||
* @param[out] value value to set line to
|
* @param[out] value value to set line to
|
||||||
*
|
|
||||||
* @retval none
|
|
||||||
*/
|
*/
|
||||||
void mcp47xx_dac_get(mcp47xx_t *dev, uint8_t chn, uint16_t *value);
|
void mcp47xx_dac_get(mcp47xx_t *dev, uint8_t chn, uint16_t *value);
|
||||||
|
|
||||||
@ -310,7 +306,6 @@ void mcp47xx_dac_get(mcp47xx_t *dev, uint8_t chn, uint16_t *value);
|
|||||||
*
|
*
|
||||||
* @param[in] dev descriptor of the MCP47xx DAC device
|
* @param[in] dev descriptor of the MCP47xx DAC device
|
||||||
* @param[in] chn channel to power on
|
* @param[in] chn channel to power on
|
||||||
* @retval none
|
|
||||||
*/
|
*/
|
||||||
void mcp47xx_dac_poweron(mcp47xx_t *dev, uint8_t chn);
|
void mcp47xx_dac_poweron(mcp47xx_t *dev, uint8_t chn);
|
||||||
|
|
||||||
@ -326,7 +321,6 @@ void mcp47xx_dac_poweron(mcp47xx_t *dev, uint8_t chn);
|
|||||||
*
|
*
|
||||||
* @param[in] dev descriptor of the MCP47xx DAC device
|
* @param[in] dev descriptor of the MCP47xx DAC device
|
||||||
* @param[in] chn channel to power on
|
* @param[in] chn channel to power on
|
||||||
* @retval none
|
|
||||||
*/
|
*/
|
||||||
void mcp47xx_dac_poweroff(mcp47xx_t *dev, uint8_t chn);
|
void mcp47xx_dac_poweroff(mcp47xx_t *dev, uint8_t chn);
|
||||||
|
|
||||||
|
|||||||
@ -216,8 +216,6 @@ int motor_brake(const motor_driver_t motor_driver, uint8_t motor_id);
|
|||||||
*
|
*
|
||||||
* @param[in] motor_driver motor driver to which motor is attached
|
* @param[in] motor_driver motor driver to which motor is attached
|
||||||
* @param[in] motor_id motor ID on driver
|
* @param[in] motor_id motor ID on driver
|
||||||
*
|
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
void motor_enable(const motor_driver_t motor_driver, uint8_t motor_id);
|
void motor_enable(const motor_driver_t motor_driver, uint8_t motor_id);
|
||||||
|
|
||||||
@ -226,8 +224,6 @@ void motor_enable(const motor_driver_t motor_driver, uint8_t motor_id);
|
|||||||
*
|
*
|
||||||
* @param[in] motor_driver motor driver to which motor is attached
|
* @param[in] motor_driver motor driver to which motor is attached
|
||||||
* @param[in] motor_id motor ID on driver
|
* @param[in] motor_id motor ID on driver
|
||||||
*
|
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
void motor_disable(const motor_driver_t motor_driver, uint8_t motor_id);
|
void motor_disable(const motor_driver_t motor_driver, uint8_t motor_id);
|
||||||
|
|
||||||
|
|||||||
@ -393,7 +393,7 @@ union gpio_conf_minimal {
|
|||||||
* consulted.
|
* consulted.
|
||||||
*/
|
*/
|
||||||
bool initial_value : 1;
|
bool initial_value : 1;
|
||||||
uint8_t : 2; /*< padding */
|
uint8_t : 2; /**< padding */
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -97,9 +97,9 @@ typedef uint_fast8_t pwm_t;
|
|||||||
*/
|
*/
|
||||||
#ifndef HAVE_PWM_MODE_T
|
#ifndef HAVE_PWM_MODE_T
|
||||||
typedef enum {
|
typedef enum {
|
||||||
PWM_LEFT, /*< use left aligned PWM */
|
PWM_LEFT, /**< use left aligned PWM */
|
||||||
PWM_RIGHT, /*< use right aligned PWM */
|
PWM_RIGHT, /**< use right aligned PWM */
|
||||||
PWM_CENTER /*< use center aligned PWM */
|
PWM_CENTER /**< use center aligned PWM */
|
||||||
} pwm_mode_t;
|
} pwm_mode_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@ -136,10 +136,9 @@ typedef struct ph_oem {
|
|||||||
* @param[in,out] dev device descriptor
|
* @param[in,out] dev device descriptor
|
||||||
* @param[in] params device configuration
|
* @param[in] params device configuration
|
||||||
*
|
*
|
||||||
* @return @ref PH_OEM_OK on success
|
* @retval PH_OEM_OK on success
|
||||||
* @return @ref PH_OEM_NODEV if no device is found on the bus
|
* @retval PH_OEM_NODEV if no device is found on the bus
|
||||||
* @return @ref PH_OEM_NOT_PH if the device found at the address is not a pH OEM device
|
* @retval PH_OEM_NOT_PH if the device found at the address is not a pH OEM device
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
int ph_oem_init(ph_oem_t *dev, const ph_oem_params_t *params);
|
int ph_oem_init(ph_oem_t *dev, const ph_oem_params_t *params);
|
||||||
|
|
||||||
|
|||||||
@ -82,8 +82,8 @@ typedef struct {
|
|||||||
/**
|
/**
|
||||||
* @brief Initialize the given device
|
* @brief Initialize the given device
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
* @param[in] params Initialization parameters
|
* @param[in] params Initialization parameters
|
||||||
*
|
*
|
||||||
* @return 0 on success
|
* @return 0 on success
|
||||||
* @return > 0 on error
|
* @return > 0 on error
|
||||||
@ -93,7 +93,7 @@ int sen5x_init(sen5x_t *dev, const sen5x_params_t *params);
|
|||||||
/**
|
/**
|
||||||
* @brief Execute a reset on the given device
|
* @brief Execute a reset on the given device
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
*
|
*
|
||||||
* @return 0 on success
|
* @return 0 on success
|
||||||
* @return > 0 on error
|
* @return > 0 on error
|
||||||
@ -103,7 +103,7 @@ int sen5x_reset(const sen5x_t *dev);
|
|||||||
/**
|
/**
|
||||||
* @brief Starts a continuous measurement
|
* @brief Starts a continuous measurement
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
*/
|
*/
|
||||||
void sen5x_wake(const sen5x_t *dev);
|
void sen5x_wake(const sen5x_t *dev);
|
||||||
|
|
||||||
@ -111,28 +111,28 @@ void sen5x_wake(const sen5x_t *dev);
|
|||||||
* @brief Starts a continuous measurement without PM. Only humidity,
|
* @brief Starts a continuous measurement without PM. Only humidity,
|
||||||
* temperature, VOC and NOx are measured.
|
* temperature, VOC and NOx are measured.
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
*/
|
*/
|
||||||
void sen5x_wake_no_pm(const sen5x_t *dev);
|
void sen5x_wake_no_pm(const sen5x_t *dev);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Stops the measurement and returns to idle mode
|
* @brief Stops the measurement and returns to idle mode
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
*/
|
*/
|
||||||
void sen5x_sleep(const sen5x_t *dev);
|
void sen5x_sleep(const sen5x_t *dev);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Sets the fan to maximum speed, to clean it within 10 seconds
|
* @brief Sets the fan to maximum speed, to clean it within 10 seconds
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
*/
|
*/
|
||||||
void sen5x_clean_fan(const sen5x_t *dev);
|
void sen5x_clean_fan(const sen5x_t *dev);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Sets the fan to maximum speed, to clean it within 10 seconds
|
* @brief Sets the fan to maximum speed, to clean it within 10 seconds
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
*
|
*
|
||||||
* @return 0 if no new measurements are available
|
* @return 0 if no new measurements are available
|
||||||
* @return 1 if new measuremtns are ready to be read
|
* @return 1 if new measuremtns are ready to be read
|
||||||
@ -142,26 +142,26 @@ bool sen5x_data_ready_flag(const sen5x_t *dev);
|
|||||||
/**
|
/**
|
||||||
* @brief Read measured mass concentration, humidity and temperature values
|
* @brief Read measured mass concentration, humidity and temperature values
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
* @param[out] values Pointer to wrapper containing all measured values
|
* @param[out] values Pointer to wrapper containing all measured values
|
||||||
*/
|
*/
|
||||||
void sen5x_read_values(const sen5x_t *dev, sen5x_measurement_t *values);
|
void sen5x_read_values(const sen5x_t *dev, sen5x_measurement_t *values);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Read measured particle matter values
|
* @brief Read measured particle matter values
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
* @param[out] values Pointer to wrapper containing all measured values
|
* @param[out] values Pointer to wrapper containing all measured values
|
||||||
*/
|
*/
|
||||||
void sen5x_read_pm_values(const sen5x_t *dev, sen5x_measurement_t *values);
|
void sen5x_read_pm_values(const sen5x_t *dev, sen5x_measurement_t *values);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Set a custom temperature offset to the ambient temperature
|
* @brief Set a custom temperature offset to the ambient temperature
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
* @param[in] temp_offset Temperature offset in °C
|
* @param[in] temp_offset Temperature offset in °C
|
||||||
* @param[in] slope Normalized temperature offset slope
|
* @param[in] slope Normalized temperature offset slope
|
||||||
* @param[in] time_constant Time constant in seconds
|
* @param[in] time_constant Time constant in seconds
|
||||||
*/
|
*/
|
||||||
void sen5x_set_temperature_offset(const sen5x_t *dev, int16_t temp_offset,
|
void sen5x_set_temperature_offset(const sen5x_t *dev, int16_t temp_offset,
|
||||||
int16_t slope, uint16_t time_constant);
|
int16_t slope, uint16_t time_constant);
|
||||||
@ -169,7 +169,7 @@ void sen5x_set_temperature_offset(const sen5x_t *dev, int16_t temp_offset,
|
|||||||
/**
|
/**
|
||||||
* @brief Set a custom temperature offset to the ambient temperature
|
* @brief Set a custom temperature offset to the ambient temperature
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
* @param[out] temp_offset Temperature offset in °C
|
* @param[out] temp_offset Temperature offset in °C
|
||||||
* @param[out] slope Normalized temperature offset slope
|
* @param[out] slope Normalized temperature offset slope
|
||||||
* @param[out] time_constant Time constant in seconds
|
* @param[out] time_constant Time constant in seconds
|
||||||
@ -181,8 +181,8 @@ void sen5x_get_temperature_offset(const sen5x_t *dev, int16_t *temp_offset,
|
|||||||
* @brief Set the parameter for a warm start on the device, to improve initial
|
* @brief Set the parameter for a warm start on the device, to improve initial
|
||||||
* accuracy of the ambient temperature output
|
* accuracy of the ambient temperature output
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
* @param[in] warm_start Warm start behavior as a value in the range from
|
* @param[in] warm_start Warm start behavior as a value in the range from
|
||||||
* 0 (cold start, default) to 65535 (warm start).
|
* 0 (cold start, default) to 65535 (warm start).
|
||||||
*/
|
*/
|
||||||
void sen5x_set_warm_start(const sen5x_t *dev, uint16_t warm_start);
|
void sen5x_set_warm_start(const sen5x_t *dev, uint16_t warm_start);
|
||||||
@ -190,8 +190,8 @@ void sen5x_set_warm_start(const sen5x_t *dev, uint16_t warm_start);
|
|||||||
/**
|
/**
|
||||||
* @brief Get the warm start parameter
|
* @brief Get the warm start parameter
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
* @param[out] warm_start Warm start behavior as a value in the range from
|
* @param[out] warm_start Warm start behavior as a value in the range from
|
||||||
* 0 (cold start, default) to 65535 (warm start).
|
* 0 (cold start, default) to 65535 (warm start).
|
||||||
*/
|
*/
|
||||||
void sen5x_get_warm_start(const sen5x_t *dev, uint16_t *warm_start);
|
void sen5x_get_warm_start(const sen5x_t *dev, uint16_t *warm_start);
|
||||||
@ -199,15 +199,15 @@ void sen5x_get_warm_start(const sen5x_t *dev, uint16_t *warm_start);
|
|||||||
/**
|
/**
|
||||||
* @brief Set the parameters for the VOC Algorithm tuning
|
* @brief Set the parameters for the VOC Algorithm tuning
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
* @param[in] index_offset VOC index representing typical (average) conditions
|
* @param[in] index_offset VOC index representing typical (average) conditions
|
||||||
* @param[in] learning_time_offset_hours Time constant to estimate the VOC
|
* @param[in] learning_time_offset_hours Time constant to estimate the VOC
|
||||||
* algorithm offset from the history in hours
|
* algorithm offset from the history in hours
|
||||||
* @param[in] learning_time_gain_hours Time constant to estimate the VOC
|
* @param[in] learning_time_gain_hours Time constant to estimate the VOC
|
||||||
* algorithm gain from the history in hours
|
* algorithm gain from the history in hours
|
||||||
* @param[in] gating_max_duration_minutes Maximum duration of gating in minutes
|
* @param[in] gating_max_duration_minutes Maximum duration of gating in minutes
|
||||||
* @param[in] std_initial Initial estimate for standard deviation
|
* @param[in] std_initial Initial estimate for standard deviation
|
||||||
* @param[in] gain_factor Gain factor to amplify or to attenuate
|
* @param[in] gain_factor Gain factor to amplify or to attenuate
|
||||||
* the VOC index output
|
* the VOC index output
|
||||||
*/
|
*/
|
||||||
void sen5x_set_voc_algorithm_tuning(
|
void sen5x_set_voc_algorithm_tuning(
|
||||||
@ -218,7 +218,7 @@ void sen5x_set_voc_algorithm_tuning(
|
|||||||
/**
|
/**
|
||||||
* @brief Get the VOC Algorithm tuning parameters
|
* @brief Get the VOC Algorithm tuning parameters
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
* @param[out] index_offset VOC index representing typical
|
* @param[out] index_offset VOC index representing typical
|
||||||
* (average) conditions
|
* (average) conditions
|
||||||
* @param[out] learning_time_offset_hours Time constant to estimate the VOC
|
* @param[out] learning_time_offset_hours Time constant to estimate the VOC
|
||||||
@ -238,19 +238,19 @@ void sen5x_get_voc_algorithm_tuning(
|
|||||||
/**
|
/**
|
||||||
* @brief Set the parameters for the NOx Algorithm tuning
|
* @brief Set the parameters for the NOx Algorithm tuning
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
* @param[in] index_offset NOx index representing typical (average) conditions
|
* @param[in] index_offset NOx index representing typical (average) conditions
|
||||||
* @param[in] learning_time_offset_hours Time constant to estimate the NOx algorithm offset
|
* @param[in] learning_time_offset_hours Time constant to estimate the NOx algorithm offset
|
||||||
* from the history in hours
|
* from the history in hours
|
||||||
* @param[in] learning_time_gain_hours The time constant to estimate the
|
* @param[in] learning_time_gain_hours The time constant to estimate the
|
||||||
* NOx algorithm gain from the history has no
|
* NOx algorithm gain from the history has no
|
||||||
* impact for NOx. This parameter is still in place
|
* impact for NOx. This parameter is still in place
|
||||||
* for consistency reasons with the VOC tuning
|
* for consistency reasons with the VOC tuning
|
||||||
* parameters command.
|
* parameters command.
|
||||||
* This parameter must always be set to 12 hours
|
* This parameter must always be set to 12 hours
|
||||||
* @param[in] gating_max_duration_minutes Maximum duration of gating in minutes
|
* @param[in] gating_max_duration_minutes Maximum duration of gating in minutes
|
||||||
* @param[in] std_initial Initial estimate for standard deviation
|
* @param[in] std_initial Initial estimate for standard deviation
|
||||||
* @param[in] gain_factor Gain factor to amplify or to attenuate
|
* @param[in] gain_factor Gain factor to amplify or to attenuate
|
||||||
* the NOx index output
|
* the NOx index output
|
||||||
*/
|
*/
|
||||||
void sen5x_set_nox_algorithm_tuning(
|
void sen5x_set_nox_algorithm_tuning(
|
||||||
@ -261,7 +261,7 @@ void sen5x_set_nox_algorithm_tuning(
|
|||||||
/**
|
/**
|
||||||
* @brief Get the NOx Algorithm tuning parameters
|
* @brief Get the NOx Algorithm tuning parameters
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
* @param[out] index_offset NOx index representing typical(average) conditions
|
* @param[out] index_offset NOx index representing typical(average) conditions
|
||||||
* @param[out] learning_time_offset_hours Time constant to estimate the NOx algorithm
|
* @param[out] learning_time_offset_hours Time constant to estimate the NOx algorithm
|
||||||
* offset from the history in hours
|
* offset from the history in hours
|
||||||
@ -284,8 +284,8 @@ void sen5x_get_nox_algorithm_tuning(
|
|||||||
/**
|
/**
|
||||||
* @brief Set the mode for the RH/T acceleration algorithm
|
* @brief Set the mode for the RH/T acceleration algorithm
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
* @param[in] mode RH/T acceleration mode:
|
* @param[in] mode RH/T acceleration mode:
|
||||||
* = 0: Low Acceleration
|
* = 0: Low Acceleration
|
||||||
* = 1: High Acceleration
|
* = 1: High Acceleration
|
||||||
* = 2: Medium Acceleration
|
* = 2: Medium Acceleration
|
||||||
@ -295,8 +295,8 @@ void sen5x_set_rht_acceleration(const sen5x_t *dev, uint16_t mode);
|
|||||||
/**
|
/**
|
||||||
* @brief Get the mode for the RH/T acceleration algorithm
|
* @brief Get the mode for the RH/T acceleration algorithm
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
* @param[out] mode RH/T acceleration mode:
|
* @param[out] mode RH/T acceleration mode:
|
||||||
* = 0: Low Acceleration
|
* = 0: Low Acceleration
|
||||||
* = 1: High Acceleration
|
* = 1: High Acceleration
|
||||||
* = 2: Medium Acceleration
|
* = 2: Medium Acceleration
|
||||||
@ -306,18 +306,18 @@ void sen5x_get_rht_acceleration(const sen5x_t *dev, uint16_t *mode);
|
|||||||
/**
|
/**
|
||||||
* @brief Get the VOC Algorithm state
|
* @brief Get the VOC Algorithm state
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
* @param[in] state VOC Algorithm state
|
* @param[in] state VOC Algorithm state
|
||||||
* @param[in] state_size Size of the VOC Algorithm state
|
* @param[in] state_size Size of the VOC Algorithm state
|
||||||
*/
|
*/
|
||||||
void sen5x_set_voc_state(const sen5x_t *dev, const uint8_t *state, uint8_t state_size);
|
void sen5x_set_voc_state(const sen5x_t *dev, const uint8_t *state, uint8_t state_size);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Set the VOC Algorithm state
|
* @brief Set the VOC Algorithm state
|
||||||
*
|
*
|
||||||
* @param[inout] dev Device descriptor of the driver
|
* @param[in,out] dev Device descriptor of the driver
|
||||||
* @param[out] state VOC Algorithm state
|
* @param[out] state VOC Algorithm state
|
||||||
* @param[in] state_size Size of the VOC Algorithm state
|
* @param[in] state_size Size of the VOC Algorithm state
|
||||||
*/
|
*/
|
||||||
void sen5x_get_voc_state(const sen5x_t *dev, uint8_t *state, uint8_t state_size);
|
void sen5x_get_voc_state(const sen5x_t *dev, uint8_t *state, uint8_t state_size);
|
||||||
|
|
||||||
|
|||||||
@ -338,8 +338,6 @@ uint8_t sx127x_get_state(const sx127x_t *dev);
|
|||||||
*
|
*
|
||||||
* @param[in] dev The sx127x device descriptor
|
* @param[in] dev The sx127x device descriptor
|
||||||
* @param[in] state The new radio state
|
* @param[in] state The new radio state
|
||||||
*
|
|
||||||
* @return radio state [RF_IDLE, RF_RX_RUNNING, RF_TX_RUNNING]
|
|
||||||
*/
|
*/
|
||||||
void sx127x_set_state(sx127x_t *dev, uint8_t state);
|
void sx127x_set_state(sx127x_t *dev, uint8_t state);
|
||||||
|
|
||||||
|
|||||||
@ -178,10 +178,6 @@ extern const netdev_driver_t xbee_driver;
|
|||||||
*
|
*
|
||||||
* @param[out] dev Xbee device to initialize
|
* @param[out] dev Xbee device to initialize
|
||||||
* @param[in] params parameters for device initialization
|
* @param[in] params parameters for device initialization
|
||||||
*
|
|
||||||
* @return 0 on success
|
|
||||||
* @return -ENODEV on invalid device descriptor
|
|
||||||
* @return -ENXIO on invalid UART or GPIO pins
|
|
||||||
*/
|
*/
|
||||||
void xbee_setup(xbee_t *dev, const xbee_params_t *params);
|
void xbee_setup(xbee_t *dev, const xbee_params_t *params);
|
||||||
|
|
||||||
|
|||||||
@ -274,7 +274,7 @@ static int lis3dh_write_reg(const lis3dh_t *dev, const uint8_t reg,
|
|||||||
/**
|
/**
|
||||||
* @brief Write (both set and clear) bits of an 8-bit register on the LIS3DH.
|
* @brief Write (both set and clear) bits of an 8-bit register on the LIS3DH.
|
||||||
*
|
*
|
||||||
* @param[in] addr Register address on the LIS3DH.
|
* @param[in] reg Register address on the LIS3DH.
|
||||||
* @param[in] mask Bitmask for the bits to modify.
|
* @param[in] mask Bitmask for the bits to modify.
|
||||||
* @param[in] values The values to write to the masked bits.
|
* @param[in] values The values to write to the masked bits.
|
||||||
*
|
*
|
||||||
|
|||||||
@ -75,7 +75,7 @@ static int _mcp2515_enable_irq(candev_mcp2515_t *dev, uint8_t irq);
|
|||||||
* the “ID” or “data” address of any of the three transmit buffers.
|
* the “ID” or “data” address of any of the three transmit buffers.
|
||||||
*
|
*
|
||||||
* @param[in] id filter identifier in the MCP2515 mailbox
|
* @param[in] id filter identifier in the MCP2515 mailbox
|
||||||
* @param|out] bytebuf buffer instruction
|
* @param[out] bytebuf buffer instruction
|
||||||
*/
|
*/
|
||||||
static void _fill_standard_id(uint32_t id, uint8_t *bytebuf);
|
static void _fill_standard_id(uint32_t id, uint8_t *bytebuf);
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ static void _fill_standard_id(uint32_t id, uint8_t *bytebuf);
|
|||||||
* for more details see _fill_standard_id.
|
* for more details see _fill_standard_id.
|
||||||
*
|
*
|
||||||
* @param[in] id filter identifier in the MCP2515 mailbox
|
* @param[in] id filter identifier in the MCP2515 mailbox
|
||||||
* @param|out] bytebuf buffer instruction
|
* @param[out] bytebuf buffer instruction
|
||||||
*/
|
*/
|
||||||
static void _fill_extended_id(uint32_t id, uint8_t *bytebuf);
|
static void _fill_extended_id(uint32_t id, uint8_t *bytebuf);
|
||||||
|
|
||||||
|
|||||||
@ -152,9 +152,9 @@ static void _device_read_n(mfrc522_t *dev, mfrc522_pcd_register_t reg,
|
|||||||
/**
|
/**
|
||||||
* @brief Read single byte from a given register of the device.
|
* @brief Read single byte from a given register of the device.
|
||||||
*
|
*
|
||||||
* @param[in] dev Device descriptor of the MFRC522
|
* @param[in] dev Device descriptor of the MFRC522
|
||||||
* @param[in] reg Register to read from
|
* @param[in] reg Register to read from
|
||||||
* @param[in] byte uint8_t pointer to store the value in
|
* @param[in] value uint8_t pointer to store the value in
|
||||||
*/
|
*/
|
||||||
static void _device_read(mfrc522_t *dev, mfrc522_pcd_register_t reg,
|
static void _device_read(mfrc522_t *dev, mfrc522_pcd_register_t reg,
|
||||||
uint8_t *value)
|
uint8_t *value)
|
||||||
|
|||||||
@ -190,7 +190,7 @@ int mtd_write(mtd_dev_t *mtd, const void *src, uint32_t addr, uint32_t count)
|
|||||||
* @param[in] data Pointer to the data to be written
|
* @param[in] data Pointer to the data to be written
|
||||||
* @param[in] sector Sector to write
|
* @param[in] sector Sector to write
|
||||||
* @param[in] offset Byte offset from the start of the sector
|
* @param[in] offset Byte offset from the start of the sector
|
||||||
* @param[in] size Number of bytes
|
* @param[in] len Number of bytes
|
||||||
*
|
*
|
||||||
* @return bytes written on success
|
* @return bytes written on success
|
||||||
* @return < 0 value on error
|
* @return < 0 value on error
|
||||||
|
|||||||
@ -265,7 +265,7 @@ static int _init(netdev_t *netdev)
|
|||||||
/**
|
/**
|
||||||
* @brief NRF24L01+ @ref netdev_driver_t::recv routine
|
* @brief NRF24L01+ @ref netdev_driver_t::recv routine
|
||||||
*
|
*
|
||||||
* @pre @see nrf24l01p_ng_acquire must have been called before.
|
* @pre @ref nrf24l01p_ng_acquire must have been called before.
|
||||||
* @pre Interrupts should be disabled
|
* @pre Interrupts should be disabled
|
||||||
*
|
*
|
||||||
* The SPI bus is not acquired in this function because it is called from
|
* The SPI bus is not acquired in this function because it is called from
|
||||||
@ -273,10 +273,10 @@ static int _init(netdev_t *netdev)
|
|||||||
* device acquired the SPI bus within the ISR, the ISR would block
|
* device acquired the SPI bus within the ISR, the ISR would block
|
||||||
* until that device releases the bus.
|
* until that device releases the bus.
|
||||||
*
|
*
|
||||||
* @param[in] netdev Abstract network device handle
|
* @param[in] netdev Abstract network device handle
|
||||||
* @param[out] buf Rx buffer
|
* @param[out] buf Rx buffer
|
||||||
* @param[in] len Size of Rx buffer
|
* @param[in] len Size of Rx buffer
|
||||||
* @param[out] LQI and RSSI information (unused)
|
* @param[out] info LQI and RSSI information (unused)
|
||||||
*
|
*
|
||||||
* @return Size of received frame in @p buf
|
* @return Size of received frame in @p buf
|
||||||
* @return Upper estimation of the frame width,
|
* @return Upper estimation of the frame width,
|
||||||
|
|||||||
@ -439,10 +439,11 @@ static void _sdp3x_irq_callback(void *arg)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function to check if the product number set
|
* @brief Function to check if the product number set is the one we get from
|
||||||
* is the one we get from the sensor
|
* the sensor
|
||||||
* @param data data read from the sensor
|
* @param readData data read from the sensor
|
||||||
* @return true if values from sensor were correct
|
* @retval true values from sensor are correct
|
||||||
|
* @retval false values from sensor are incorrect
|
||||||
*/
|
*/
|
||||||
static bool _check_product_number(uint8_t *readData)
|
static bool _check_product_number(uint8_t *readData)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -38,9 +38,9 @@
|
|||||||
/**
|
/**
|
||||||
* @brief Calculate the duty cycle corresponding to the given duration of the
|
* @brief Calculate the duty cycle corresponding to the given duration of the
|
||||||
* "on duration"
|
* "on duration"
|
||||||
* @param pwm_freq frequency of the PWM peripheral
|
* @param freq frequency of the PWM peripheral
|
||||||
* @param pwm_res resolution of the PWM peripheral
|
* @param res resolution of the PWM peripheral
|
||||||
* @param duration duration of the "on phase" in microseconds
|
* @param duration_us duration of the "on phase" in microseconds
|
||||||
*
|
*
|
||||||
* @note Scientific rounding is used
|
* @note Scientific rounding is used
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -300,7 +300,7 @@ int sht2x_write_userreg(const sht2x_t *dev, uint8_t userreg)
|
|||||||
* @brief Read a sensor value from the given SHT2X device
|
* @brief Read a sensor value from the given SHT2X device
|
||||||
*
|
*
|
||||||
* @param[in] dev Device descriptor of SHT2X device to read from
|
* @param[in] dev Device descriptor of SHT2X device to read from
|
||||||
* @param[in] cmd The SHT2x command (hold mode only)
|
* @param[in] command The SHT2x command (hold mode only)
|
||||||
* @param[out] val The raw sensor value (only valid if no error)
|
* @param[out] val The raw sensor value (only valid if no error)
|
||||||
*
|
*
|
||||||
* @return SHT2X_OK value is returned in @p val
|
* @return SHT2X_OK value is returned in @p val
|
||||||
@ -346,7 +346,7 @@ static int read_sensor(const sht2x_t* dev, cmd_t command, uint16_t *val)
|
|||||||
* @brief Read a sensor value from the given SHT2X device, polling mode
|
* @brief Read a sensor value from the given SHT2X device, polling mode
|
||||||
*
|
*
|
||||||
* @param[in] dev Device descriptor of SHT2X device to read from
|
* @param[in] dev Device descriptor of SHT2X device to read from
|
||||||
* @param[in] cmd The SHT2x command (hold mode only)
|
* @param[in] command The SHT2x command (hold mode only)
|
||||||
* @param[out] val The raw sensor value (only valid if no error)
|
* @param[out] val The raw sensor value (only valid if no error)
|
||||||
*
|
*
|
||||||
* @return SHT2X_OK value is returned in @p val
|
* @return SHT2X_OK value is returned in @p val
|
||||||
|
|||||||
@ -129,7 +129,7 @@ static inline bool _cpy_check_crc(uint8_t *data, size_t len, const uint8_t *crcd
|
|||||||
*
|
*
|
||||||
* @param[in] dev Pointer to SPS30 device handle
|
* @param[in] dev Pointer to SPS30 device handle
|
||||||
* @param[in] ptr_addr 16 bit pointer address used as command
|
* @param[in] ptr_addr 16 bit pointer address used as command
|
||||||
* @param[in/out] data Pre-allocated memory pointing to either the data
|
* @param[in,out] data Pre-allocated memory pointing to either the data
|
||||||
* that will be sent to the device or to memory that
|
* that will be sent to the device or to memory that
|
||||||
* will hold the response. For type (1) transfers
|
* will hold the response. For type (1) transfers
|
||||||
* this parameter will be ignored.
|
* this parameter will be ignored.
|
||||||
|
|||||||
@ -38,9 +38,9 @@ int hello(void);
|
|||||||
/**
|
/**
|
||||||
* @brief Get day of week from given date (day, month, year >= 1/1/2000).
|
* @brief Get day of week from given date (day, month, year >= 1/1/2000).
|
||||||
*
|
*
|
||||||
* @param[in] day
|
* @param[in] day day of the date
|
||||||
* @param[in] month
|
* @param[in] month month of the date
|
||||||
* @param[in] year
|
* @param[in] year year f the date
|
||||||
*
|
*
|
||||||
* @return day of week (0 means Sunday, ... 6 means Saturday)
|
* @return day of week (0 means Sunday, ... 6 means Saturday)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -82,10 +82,6 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Convert ATCA status values to PSA errors
|
* @brief Convert ATCA status values to PSA errors
|
||||||
*
|
|
||||||
* @param error
|
|
||||||
*
|
|
||||||
* @return @ref psa_status_t
|
|
||||||
*/
|
*/
|
||||||
static psa_status_t atca_to_psa_error(ATCA_STATUS error)
|
static psa_status_t atca_to_psa_error(ATCA_STATUS error)
|
||||||
{
|
{
|
||||||
@ -172,10 +168,6 @@ const char *atca_status_to_humanly_readable(ATCA_STATUS status)
|
|||||||
/* Secure Element Cipher Functions */
|
/* Secure Element Cipher Functions */
|
||||||
/**
|
/**
|
||||||
* @brief Set up a driver specific AES CBC mode operation
|
* @brief Set up a driver specific AES CBC mode operation
|
||||||
*
|
|
||||||
* @param ctx
|
|
||||||
* @param dev
|
|
||||||
* @param key_slot
|
|
||||||
*/
|
*/
|
||||||
static void atca_cbc_setup(atca_aes_cbc_ctx_t *ctx,
|
static void atca_cbc_setup(atca_aes_cbc_ctx_t *ctx,
|
||||||
ATCADevice dev,
|
ATCADevice dev,
|
||||||
|
|||||||
@ -65,8 +65,8 @@
|
|||||||
* @brief Creates a new connection object based on the security instance
|
* @brief Creates a new connection object based on the security instance
|
||||||
* represented by @p instance_id.
|
* represented by @p instance_id.
|
||||||
*
|
*
|
||||||
* @param[in] instance_id ID number of the instance of security object
|
* @param[in] sec_obj_inst_id ID number of the instance of security object
|
||||||
* @param[in, out] client_data LwM2M client data
|
* @param[in,out] client_data LwM2M client data
|
||||||
*
|
*
|
||||||
* @return Pointer to the new connection
|
* @return Pointer to the new connection
|
||||||
*/
|
*/
|
||||||
@ -97,7 +97,7 @@ static int _connection_send(lwm2m_client_connection_t *conn, uint8_t *buffer,
|
|||||||
* @return pointer to the interface to use on success
|
* @return pointer to the interface to use on success
|
||||||
* @retval NULL on error
|
* @retval NULL on error
|
||||||
*/
|
*/
|
||||||
static netif_t *_get_interface(const char *iface, size_t len);
|
static netif_t *_get_interface(const char *iface, size_t iface_len);
|
||||||
|
|
||||||
void *lwm2m_connect_server(uint16_t sec_obj_inst_id, void *user_data)
|
void *lwm2m_connect_server(uint16_t sec_obj_inst_id, void *user_data)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -270,12 +270,12 @@ out:
|
|||||||
* Convenience function to call @ref _set_resource_data with a string representing the resource's
|
* Convenience function to call @ref _set_resource_data with a string representing the resource's
|
||||||
* path.
|
* path.
|
||||||
*
|
*
|
||||||
* @param[in] client_data Pointer to the LwM2M client data.
|
* @param[in] client_data Pointer to the LwM2M client data.
|
||||||
* @param[in] path Array containing the path to the resource to get.
|
* @param[in] path Array containing the path to the resource to get.
|
||||||
* @param[in] path_len Length of @p path.
|
* @param[in] path_len Length of @p path.
|
||||||
* @param[in] expected_type Type of data that is expected from the specified resource.
|
* @param[in] type Type of data that is expected from the specified resource.
|
||||||
* @param[in] in Pointer where to store the data.
|
* @param[in] in Pointer where to store the data.
|
||||||
* @param[in] in_len Length of @p out.
|
* @param[in] in_len Length of @p out.
|
||||||
*
|
*
|
||||||
* @retval 0 on success
|
* @retval 0 on success
|
||||||
* @retval -EINVAL when the path is malformed, the value can not be set
|
* @retval -EINVAL when the path is malformed, the value can not be set
|
||||||
|
|||||||
@ -180,10 +180,10 @@ static uint8_t _create_cb(lwm2m_context_t * context, uint16_t instance_id, int n
|
|||||||
/**
|
/**
|
||||||
* @brief Get a value from a security object instance.
|
* @brief Get a value from a security object instance.
|
||||||
*
|
*
|
||||||
* @param data[in, out] Data structure indicating the id of the resource
|
* @param[in,out] data Data structure indicating the id of the resource
|
||||||
* to get the value of. It will contain the value if
|
* to get the value of. It will contain the value
|
||||||
* successful.
|
* if successful.
|
||||||
* @param instance[in] Instance to get the data from.
|
* @param[in] instance Instance to get the data from.
|
||||||
* @retval 0 on success
|
* @retval 0 on success
|
||||||
* @retval <0 otherwise
|
* @retval <0 otherwise
|
||||||
*/
|
*/
|
||||||
@ -192,9 +192,9 @@ static int _get_value(lwm2m_data_t *data, lwm2m_obj_security_inst_t *instance);
|
|||||||
/**
|
/**
|
||||||
* @brief Initialize a new instance with the given arguments.
|
* @brief Initialize a new instance with the given arguments.
|
||||||
*
|
*
|
||||||
* @param instance[out] Instance to initialize.
|
* @param[out] instance Instance to initialize.
|
||||||
* @param instance_id[in] ID of the instance.
|
* @param[in] instance_id ID of the instance.
|
||||||
* @param args[in] Arguments to initialize the instance with.
|
* @param[in] args Arguments to initialize the instance with.
|
||||||
*
|
*
|
||||||
* @retval 0 on success
|
* @retval 0 on success
|
||||||
* @retval -ENOMEM if there is no memory available to copy credentials
|
* @retval -ENOMEM if there is no memory available to copy credentials
|
||||||
|
|||||||
@ -29,9 +29,6 @@ extern "C" {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Converts errors of the RIOT cipher module to PSA status values
|
* @brief Converts errors of the RIOT cipher module to PSA status values
|
||||||
*
|
|
||||||
* @param error
|
|
||||||
* @return @ref psa_status_t
|
|
||||||
*/
|
*/
|
||||||
psa_status_t cipher_to_psa_error(int error);
|
psa_status_t cipher_to_psa_error(int error);
|
||||||
|
|
||||||
|
|||||||
@ -534,7 +534,7 @@ static inline bool GNRC_RPL_COUNTER_GREATER_THAN(uint8_t A, uint8_t B)
|
|||||||
extern kernel_pid_t gnrc_rpl_pid;
|
extern kernel_pid_t gnrc_rpl_pid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief @see @ref GNRC_RPL_ALL_NODES_ADDR
|
* @brief See @ref GNRC_RPL_ALL_NODES_ADDR
|
||||||
*/
|
*/
|
||||||
extern const ipv6_addr_t ipv6_addr_all_rpl_nodes;
|
extern const ipv6_addr_t ipv6_addr_all_rpl_nodes;
|
||||||
|
|
||||||
|
|||||||
@ -1744,12 +1744,6 @@ psa_status_t psa_export_public_key(psa_key_id_t key,
|
|||||||
*
|
*
|
||||||
* @details This function generates a random symmetric key. As of yet it does not implement
|
* @details This function generates a random symmetric key. As of yet it does not implement
|
||||||
* asymmetric key generation.
|
* asymmetric key generation.
|
||||||
*
|
|
||||||
* @param attributes
|
|
||||||
* @param key_buffer
|
|
||||||
* @param key_buffer_size
|
|
||||||
* @param key_buffer_length
|
|
||||||
* @return psa_status_t
|
|
||||||
*/
|
*/
|
||||||
psa_status_t psa_builtin_generate_key(const psa_key_attributes_t *attributes, uint8_t *key_buffer,
|
psa_status_t psa_builtin_generate_key(const psa_key_attributes_t *attributes, uint8_t *key_buffer,
|
||||||
size_t key_buffer_size, size_t *key_buffer_length);
|
size_t key_buffer_size, size_t *key_buffer_length);
|
||||||
|
|||||||
@ -563,7 +563,7 @@ void gnrc_lorawan_open_rx_window(gnrc_lorawan_t *mac);
|
|||||||
* @brief save internal MAC state in non-volatile storage and shutdown
|
* @brief save internal MAC state in non-volatile storage and shutdown
|
||||||
* the MAC layer gracefully.
|
* the MAC layer gracefully.
|
||||||
*
|
*
|
||||||
* @param mac
|
* @param[in] mac pointer to the MAC descriptor
|
||||||
*/
|
*/
|
||||||
void gnrc_lorawan_perform_save(gnrc_lorawan_t *mac);
|
void gnrc_lorawan_perform_save(gnrc_lorawan_t *mac);
|
||||||
|
|
||||||
|
|||||||
@ -771,8 +771,8 @@ void rtt_handler(uint32_t event, gnrc_netif_t *netif)
|
|||||||
/**
|
/**
|
||||||
* @brief Function called by the device driver on device events
|
* @brief Function called by the device driver on device events
|
||||||
*
|
*
|
||||||
|
* @param dev netdev causing the event
|
||||||
* @param[in] event type of event
|
* @param[in] event type of event
|
||||||
* @param[in] data optional parameter
|
|
||||||
*/
|
*/
|
||||||
static void _lwmac_event_cb(netdev_t *dev, netdev_event_t event)
|
static void _lwmac_event_cb(netdev_t *dev, netdev_event_t event)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -102,10 +102,11 @@ static const gnrc_sixlowpan_frag_sfr_bitmap_t _null_bitmap = { .u32 = 0U };
|
|||||||
static gnrc_sixlowpan_frag_sfr_stats_t _stats;
|
static gnrc_sixlowpan_frag_sfr_stats_t _stats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Converts a @ref sys_bitmap based bitmap to a
|
* @brief Get the @ref gnrc_sixlowpan_frag_sfr_bitmap_t from an
|
||||||
* gnrc_sixlowpan_frag_sfr_bitmap_t
|
* @ref gnrc_sixlowpan_frag_rb_t
|
||||||
*
|
*
|
||||||
* @param[in] bitmap A @ref sys_bitmap
|
* @param[in] frag_rb Fragment containing the bitmap tracking received
|
||||||
|
* fragments
|
||||||
*
|
*
|
||||||
* @return A gnrc_sixlowpan_frag_sfr_bitmap_t.
|
* @return A gnrc_sixlowpan_frag_sfr_bitmap_t.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -540,8 +540,8 @@ void gnrc_ipv6_nib_rtr_adv_pio_cb(gnrc_netif_t *upstream, const ndp_opt_pi_t *pi
|
|||||||
/**
|
/**
|
||||||
* @brief Check if memory region is set to 0
|
* @brief Check if memory region is set to 0
|
||||||
*
|
*
|
||||||
* @param[in] The memory array to check
|
* @param[in] addr The memory array to check
|
||||||
* @param[in] The size of the memory array
|
* @param[in] len The size of the memory array
|
||||||
*
|
*
|
||||||
* @return true if all bytes are set to 0
|
* @return true if all bytes are set to 0
|
||||||
*/
|
*/
|
||||||
@ -593,13 +593,13 @@ static int _alloc_l2addr_entry(const void *addr, size_t len)
|
|||||||
* Only the first packet from a host generates a comparison, all subsequent
|
* Only the first packet from a host generates a comparison, all subsequent
|
||||||
* packets will be ignored until the `l2addrs` array is reset.
|
* packets will be ignored until the `l2addrs` array is reset.
|
||||||
*
|
*
|
||||||
* @param[in] upstream interface, ignore if the source does not match
|
* @param[in] iface upstream interface, ignore if the source does not match
|
||||||
* @param[in] pkt a received packet
|
* @param[in] pkt a received packet
|
||||||
*
|
*
|
||||||
* @return 1 if the sender l2 address is in order before the local l2 address
|
* @retval 1 the sender l2 address is in order before the local l2 address
|
||||||
* @return 0 if the order could not be determined or a packet from the sender
|
* @retval 0 the order could not be determined or a packet from the sender
|
||||||
* was already processed
|
* was already processed
|
||||||
* @return -1 if the sender l2 address is in order behind the local l2 address
|
* @retval -1 the sender l2 address is in order behind the local l2 address
|
||||||
*/
|
*/
|
||||||
static int _get_my_l2addr_rank(gnrc_netif_t *iface, gnrc_pktsnip_t *pkt)
|
static int _get_my_l2addr_rank(gnrc_netif_t *iface, gnrc_pktsnip_t *pkt)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -53,7 +53,6 @@ int pthread_create(pthread_t *newthread, const pthread_attr_t *attr, void *(*sta
|
|||||||
* Native threads must call sched_thread_exit().
|
* Native threads must call sched_thread_exit().
|
||||||
* A pthread must not call sched_thread_exit().
|
* A pthread must not call sched_thread_exit().
|
||||||
* @param[out] retval Return value, supplied to a joining thread.
|
* @param[out] retval Return value, supplied to a joining thread.
|
||||||
* @return This function does not return.
|
|
||||||
*/
|
*/
|
||||||
void pthread_exit(void *retval) NORETURN;
|
void pthread_exit(void *retval) NORETURN;
|
||||||
|
|
||||||
|
|||||||
@ -31,13 +31,6 @@ extern "C" {
|
|||||||
* @brief Low level wrapper function to call a driver for an ECC key generation
|
* @brief Low level wrapper function to call a driver for an ECC key generation
|
||||||
* with a SECP 192 R1 key.
|
* with a SECP 192 R1 key.
|
||||||
* See @ref psa_generate_key()
|
* See @ref psa_generate_key()
|
||||||
*
|
|
||||||
* @param attributes
|
|
||||||
* @param priv_key_buffer
|
|
||||||
* @param pub_key_buffer
|
|
||||||
* @param priv_key_buffer_length
|
|
||||||
* @param pub_key_buffer_length
|
|
||||||
* @return @ref psa_status_t
|
|
||||||
*/
|
*/
|
||||||
psa_status_t psa_generate_ecc_p192r1_key_pair( const psa_key_attributes_t *attributes,
|
psa_status_t psa_generate_ecc_p192r1_key_pair( const psa_key_attributes_t *attributes,
|
||||||
uint8_t *priv_key_buffer, uint8_t *pub_key_buffer,
|
uint8_t *priv_key_buffer, uint8_t *pub_key_buffer,
|
||||||
@ -94,13 +87,6 @@ psa_status_t psa_ecc_p192r1_verify_message(const psa_key_attributes_t *attribute
|
|||||||
* @brief Low level wrapper function to call a driver for an ECC key generation
|
* @brief Low level wrapper function to call a driver for an ECC key generation
|
||||||
* with a SECP 192 R1 key.
|
* with a SECP 192 R1 key.
|
||||||
* See @ref psa_generate_key()
|
* See @ref psa_generate_key()
|
||||||
*
|
|
||||||
* @param attributes
|
|
||||||
* @param priv_key_buffer
|
|
||||||
* @param pub_key_buffer
|
|
||||||
* @param priv_key_buffer_length
|
|
||||||
* @param pub_key_buffer_length
|
|
||||||
* @return @ref psa_status_t
|
|
||||||
*/
|
*/
|
||||||
psa_status_t psa_generate_ecc_p256r1_key_pair( const psa_key_attributes_t *attributes,
|
psa_status_t psa_generate_ecc_p256r1_key_pair( const psa_key_attributes_t *attributes,
|
||||||
uint8_t *priv_key_buffer, uint8_t *pub_key_buffer,
|
uint8_t *priv_key_buffer, uint8_t *pub_key_buffer,
|
||||||
@ -157,12 +143,6 @@ psa_status_t psa_ecc_p256r1_verify_message(const psa_key_attributes_t *attribute
|
|||||||
* @brief Low level wrapper function to call a driver for an ECC key generation
|
* @brief Low level wrapper function to call a driver for an ECC key generation
|
||||||
* with an ed25519 key.
|
* with an ed25519 key.
|
||||||
* See @ref psa_generate_key()
|
* See @ref psa_generate_key()
|
||||||
*
|
|
||||||
* @param priv_key_buffer
|
|
||||||
* @param pub_key_buffer
|
|
||||||
* @param priv_key_buffer_length
|
|
||||||
* @param pub_key_buffer_length
|
|
||||||
* @return @ref psa_status_t
|
|
||||||
*/
|
*/
|
||||||
psa_status_t psa_generate_ecc_ed25519_key_pair( uint8_t *priv_key_buffer, uint8_t *pub_key_buffer,
|
psa_status_t psa_generate_ecc_ed25519_key_pair( uint8_t *priv_key_buffer, uint8_t *pub_key_buffer,
|
||||||
size_t *priv_key_buffer_length,
|
size_t *priv_key_buffer_length,
|
||||||
@ -170,12 +150,6 @@ psa_status_t psa_generate_ecc_ed25519_key_pair( uint8_t *priv_key_buffer, uint8_
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Low level wrapper function for deriving an ed25519 public key from the private key.
|
* @brief Low level wrapper function for deriving an ed25519 public key from the private key.
|
||||||
*
|
|
||||||
* @param[in] priv_key_buffer
|
|
||||||
* @param[out] pub_key_buffer
|
|
||||||
* @param[in] priv_key_buffer_length
|
|
||||||
* @param[in,out] pub_key_buffer_length
|
|
||||||
* @return @ref psa_status_t
|
|
||||||
*/
|
*/
|
||||||
psa_status_t psa_derive_ecc_ed25519_public_key( const uint8_t *priv_key_buffer,
|
psa_status_t psa_derive_ecc_ed25519_public_key( const uint8_t *priv_key_buffer,
|
||||||
uint8_t *pub_key_buffer,
|
uint8_t *pub_key_buffer,
|
||||||
|
|||||||
@ -32,16 +32,6 @@ extern "C" {
|
|||||||
/**
|
/**
|
||||||
* @brief Low level wrapper function to call a driver for a HMAC SHA256 computation
|
* @brief Low level wrapper function to call a driver for a HMAC SHA256 computation
|
||||||
* See psa_mac_compute()
|
* See psa_mac_compute()
|
||||||
*
|
|
||||||
* @param attributes
|
|
||||||
* @param key_buffer
|
|
||||||
* @param key_buffer_size
|
|
||||||
* @param input
|
|
||||||
* @param input_length
|
|
||||||
* @param mac
|
|
||||||
* @param mac_size
|
|
||||||
* @param mac_length
|
|
||||||
* @return psa_status_t
|
|
||||||
*/
|
*/
|
||||||
psa_status_t psa_mac_compute_hmac_sha256( const psa_key_attributes_t *attributes,
|
psa_status_t psa_mac_compute_hmac_sha256( const psa_key_attributes_t *attributes,
|
||||||
const uint8_t *key_buffer,
|
const uint8_t *key_buffer,
|
||||||
|
|||||||
@ -451,12 +451,6 @@ psa_status_t psa_cipher_abort(psa_cipher_operation_t *operation)
|
|||||||
*
|
*
|
||||||
* See @ref psa_cipher_encrypt_setup(...)
|
* See @ref psa_cipher_encrypt_setup(...)
|
||||||
* See @ref psa_cipher_decrypt_setup(...)
|
* See @ref psa_cipher_decrypt_setup(...)
|
||||||
*
|
|
||||||
* @param operation
|
|
||||||
* @param key
|
|
||||||
* @param alg
|
|
||||||
* @param direction Whether encrypt or decrypt, see @ref psa_encrypt_or_decrypt_t
|
|
||||||
* @return @ref psa_status_t
|
|
||||||
*/
|
*/
|
||||||
static psa_status_t psa_cipher_setup( psa_cipher_operation_t *operation,
|
static psa_status_t psa_cipher_setup( psa_cipher_operation_t *operation,
|
||||||
psa_key_id_t key,
|
psa_key_id_t key,
|
||||||
@ -520,16 +514,6 @@ static psa_status_t psa_cipher_setup( psa_cipher_operation_t *operation,
|
|||||||
*
|
*
|
||||||
* See @ref psa_cipher_encrypt(...)
|
* See @ref psa_cipher_encrypt(...)
|
||||||
* See @ref psa_cipher_decrypt(...)
|
* See @ref psa_cipher_decrypt(...)
|
||||||
*
|
|
||||||
* @param key
|
|
||||||
* @param alg
|
|
||||||
* @param input
|
|
||||||
* @param input_length
|
|
||||||
* @param output
|
|
||||||
* @param output_size
|
|
||||||
* @param output_length
|
|
||||||
* @param direction Whether to encrypt or decrypt, see @ref psa_encrypt_or_decrypt_t
|
|
||||||
* @return @ref psa_status_t
|
|
||||||
*/
|
*/
|
||||||
static psa_status_t psa_cipher_encrypt_decrypt( psa_key_id_t key,
|
static psa_status_t psa_cipher_encrypt_decrypt( psa_key_id_t key,
|
||||||
psa_algorithm_t alg,
|
psa_algorithm_t alg,
|
||||||
@ -1254,12 +1238,6 @@ psa_status_t psa_destroy_key(psa_key_id_t key)
|
|||||||
*
|
*
|
||||||
* See @ref psa_export_key
|
* See @ref psa_export_key
|
||||||
*
|
*
|
||||||
* @param key_buffer
|
|
||||||
* @param key_buffer_size
|
|
||||||
* @param data
|
|
||||||
* @param data_size
|
|
||||||
* @param data_length
|
|
||||||
*
|
|
||||||
* @return @ref PSA_SUCCESS
|
* @return @ref PSA_SUCCESS
|
||||||
* @ref PSA_ERROR_INVALID_ARGUMENT
|
* @ref PSA_ERROR_INVALID_ARGUMENT
|
||||||
*/
|
*/
|
||||||
@ -1352,12 +1330,6 @@ psa_status_t psa_export_key(psa_key_id_t key,
|
|||||||
*
|
*
|
||||||
* See @ref psa_export_public_key
|
* See @ref psa_export_public_key
|
||||||
*
|
*
|
||||||
* @param key_buffer
|
|
||||||
* @param key_buffer_size
|
|
||||||
* @param data
|
|
||||||
* @param data_size
|
|
||||||
* @param data_length
|
|
||||||
*
|
|
||||||
* @return @ref PSA_SUCCESS
|
* @return @ref PSA_SUCCESS
|
||||||
* @ref PSA_ERROR_INVALID_ARGUMENT
|
* @ref PSA_ERROR_INVALID_ARGUMENT
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -166,19 +166,6 @@ psa_status_t psa_location_dispatch_cipher_decrypt_setup(psa_cipher_operation_t *
|
|||||||
*
|
*
|
||||||
* Some secure elements don't provide single part operations for cipher encryption.
|
* Some secure elements don't provide single part operations for cipher encryption.
|
||||||
* This is a wrapper function, to support those.
|
* This is a wrapper function, to support those.
|
||||||
*
|
|
||||||
* @param drv
|
|
||||||
* @param drv_context
|
|
||||||
* @param attributes
|
|
||||||
* @param alg
|
|
||||||
* @param direction
|
|
||||||
* @param slot
|
|
||||||
* @param input
|
|
||||||
* @param input_length
|
|
||||||
* @param output
|
|
||||||
* @param output_size
|
|
||||||
* @param output_length
|
|
||||||
* @return @ref psa_status_t
|
|
||||||
*/
|
*/
|
||||||
static psa_status_t psa_se_cipher_encrypt_decrypt( const psa_drv_se_t *drv,
|
static psa_status_t psa_se_cipher_encrypt_decrypt( const psa_drv_se_t *drv,
|
||||||
psa_drv_se_context_t *drv_context,
|
psa_drv_se_context_t *drv_context,
|
||||||
|
|||||||
@ -96,7 +96,6 @@ static psa_key_id_t key_id_count = PSA_KEY_ID_VOLATILE_MIN;
|
|||||||
/**
|
/**
|
||||||
* @brief Get the correct empty slot list, depending on the key type
|
* @brief Get the correct empty slot list, depending on the key type
|
||||||
*
|
*
|
||||||
* @param attr
|
|
||||||
* @return clist_node_t* Pointer to the list the key is supposed to be stored in,
|
* @return clist_node_t* Pointer to the list the key is supposed to be stored in,
|
||||||
* according to its attributes
|
* according to its attributes
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user