#include "spp/services/bmp390/bmp390.h"#include "spp/services/databank/databank.h"#include "spp/core/pubsub/pubsub.h"Go to the source code of this file.
Macros | |
| #define | K_BMP390_DUMMY_TASK_TIMEOUT_MS (5000U) |
Functions | |
| static SPP_RetVal_t | SPP_SERVICES_BMP390_DUMMY_init (void) |
| Initialise the dummy BMP390 producer. | |
| static SPP_RetVal_t | SPP_SERVICES_BMP390_DUMMY_acquireData (SPP_Kpid_t kpid) |
| Publish a constant BMP390-equivalent packet. | |
| const SPP_SERVICE_ProducerContract_t * | SPP_SERVICES_BMP390_getProducerContract (void) |
Variables | |
| static const SPP_SERVICE_ProducerContract_t | g_bmp390ProducerContract |
| static const spp_float32_t | s_payload [3] |
| static spp_uint16_t | s_seq = 0U |
| #define K_BMP390_DUMMY_TASK_TIMEOUT_MS (5000U) |
Definition at line 27 of file bmp390_sim.c.
|
static |
Initialise the dummy BMP390 producer.
Resets the packet sequence counter. No hardware is initialised.
Definition at line 76 of file bmp390_sim.c.
References K_SPP_OK, s_seq, and SPP_SERVICES_BMP390_DUMMY_init().
Referenced by SPP_SERVICES_BMP390_DUMMY_init().
|
static |
Publish a constant BMP390-equivalent packet.
Exercises the normal DataBank and PubSub path without performing sensor calculations, GPIO handling, SPI transactions or HAL calls.
| kpid | Producer KPID assigned by PubSub. |
Definition at line 94 of file bmp390_sim.c.
References K_SPP_ERROR, K_SPP_OK, s_payload, s_seq, SPP_Packet_t, SPP_SERVICES_BMP390_DUMMY_acquireData(), SPP_SERVICES_DATABANK_getPacket(), SPP_SERVICES_DATABANK_packetData(), SPP_SERVICES_DATABANK_returnPacket(), SPP_SERVICES_PUBSUB_publish(), and SPP_Kpid_t::value.
Referenced by SPP_SERVICES_BMP390_DUMMY_acquireData().
| const SPP_SERVICE_ProducerContract_t * SPP_SERVICES_BMP390_getProducerContract | ( | void | ) |
Definition at line 59 of file bmp390_sim.c.
References g_bmp390ProducerContract, and SPP_SERVICES_BMP390_getProducerContract().
|
static |
Definition at line 40 of file bmp390_sim.c.
|
static |
Definition at line 47 of file bmp390_sim.c.
Referenced by SPP_SERVICES_BMP390_DUMMY_acquireData().
|
static |
Definition at line 53 of file bmp390_sim.c.
Referenced by SPP_SERVICES_BMP390_DUMMY_acquireData(), and SPP_SERVICES_BMP390_DUMMY_init().