Data Logger BLE Cellular Board
Loading...
Searching...
No Matches
jfet_common.h File Reference

common struct, enum, externs, prototypes More...

#include "bme68x.h"
#include "jfet_files/HDC2080.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>

Go to the source code of this file.

Classes

struct  flashParametersStruct
 Flash parameters structure. More...
 

Macros

#define VERSION_MAJOR   0
 
#define VERSION_MINOR   15
 
#define VERSION_DATE   "BLE Sensor 07/20/26"
 
#define BOARD_NAME   "BLE Sensor Prototype"
 
#define VERSION_DATE_EXT1   " (Bd 1.0 UART0)"
 
#define VERSION_DATE_EXT2   " (Bd 1.0 No UART0)"
 
#define VERSION_DATE_EXT3   " (Bd 1.0 NO SERIAL)"
 
#define BOARD_NAME_EXT   " V1.0 (nRF52832)"
 
#define FALSE   0
 
#define TRUE   1
 
#define DEFAULT_DUTYCYCLE   TEN_SECONDS
 
#define SPI_BUF_SIZE   128
 
#define SPI_SLAVE   0
 
#define SLOW_FREQ   150000
 
#define FAST_FREQ   16000000
 
#define DATA_LENGTH   20
 
#define STR(x)
 
#define EXPAND_AND_STR(x)
 
#define LOWTEMPENABLE   0x01
 
#define LOWTEMPACTIVE   0x02
 
#define HIGHTEMPENABLE   0x04
 
#define HIGHTEMPACTIVE   0x08
 
#define LOWHUMIDITYENABLE   0x01
 
#define LOWHUMIDITYACTIVE   0x02
 
#define HIGHHUMIDITYENABLE   0x04
 
#define HIGHHUMIDITYACTIVE   0x08
 
#define MAX_PARAMETERS   3
 
#define MAX_FLASH_BYTES   0x200
 
#define FLASHPARAMETERSTART   0
 
#define FLASHBLESTART   (FLASHPARAMETERSTART + 0x10)
 
#define FLASHPARAMETERKEY   0X12345678
 
#define MAX_NUMBER_BLE_PACKETS   10
 

Enumerations

enum  SENSORTYPE { SENSORTYPEHDC2080 , SENSORTYPEW25Q64JV , SENSORTYPEBME688 , SENSORTYPEUNKNOWN }
 

Functions

int myPrintk (char *restrict fmt,...)
 
int myPrintkW (char *restrict fmt,...)
 prints a warning message to the UART
 
int myPrintkI (char *restrict fmt,...)
 prints an information message to the UART
 
int myPrintkS (char *restrict fmt,...)
 prints a status message to the UART
 
int myPrintkE (char *restrict fmt,...)
 prints an error message to the UART
 
int init_i2c ()
 Initializes the I2C interface.
 
void hdc2080_rdy_seen (const struct device *dev, struct gpio_callback *cb, uint32_t pins)
 Callback function for HDC2080 RDY pin.
 
void sw2_seen (const struct device *dev, struct gpio_callback *cb, uint32_t pins)
 Callback function for SW2 button.
 
uint8_t bleCommand (uint8_t *data)
 Executes a BLE command.
 
int getCmd (uint8_t *line)
 
int initHDC2080 (void)
 Initializes the HDC2080 sensor with default parameters.
 
int initW25Q64JV (void)
 Initiailizes the W25Q64JW.
 
int initBME688 (void)
 Initializes the BME688 sensor over SPI. Performs interface initialization, device reset, and basic data verification.
 
void readNVFlashxID (uint8_t *flashId)
 reads the NV Flash ID over the SPI bus.
 
void readNVFlashxStatus (uint8_t *flashStatus)
 reads the 3 NV Flash status registers over the SPI bus.
 
void flashxErasePage (uint32_t address)
 erases a 256 byte page over the SPI bus.
 
void flashxEraseBlock1 (uint32_t address)
 erases a 2K block page over the SPI bus.
 
void flashxEraseBlock2 (uint32_t address)
 
void flashxEraseSector (uint32_t address)
 erases a 256K byte sector over the SPI bus.
 
void flashxErase (void)
 erases the entire 8 Mb over the SPI bus.
 
void flashxReadPage (uint32_t address, uint8_t *flashRead)
 reads a 256 byte page over the SPI bus.
 
void flashxWritePage (uint32_t page, uint32_t address, uint8_t *data, uint16_t count)
 writes data to address in serial flash over the SPI bus.
 
void flashxFillPage (uint32_t address, uint16_t data)
 fills a 256 byte page with data over the SPI bus.
 
void flashxClearParameters (void)
 clears/initializes the flash parameters in RAM
 
void setFlashxParameters (uint8_t display)
 loads the NV Flash parameters from teh RAM flash parameters
 
void displayFlashxParameters (void)
 displays the NV flash parameters.
 
void rescan (void)
 rescan all I2C and SPI devices
 
void executeCmd (char *line)
 executes the command in line array.
 
int8_t getCLICmd (char *line)
 parses command line to find position of command in validCLICmds array.
 
int adc_sample (void)
 get a single reading from ADC channel
 
void getFlashparameters (void)
 Read the stored flash parameter block from serial flash.
 
void int64_to_string (int64_t num, char *str)
 Converts a 64-bit signed integer to a null-terminated string.
 
int getBME688Data (int count, uint8_t quiet)
 Triggers and retrieves measurement data from the BME688.
 

Variables

uint16_t manfID
 
uint16_t deviceID
 
const struct device *const i2c_dev
 get the device structure for the I2C device defined by I2C_DEV_NODE
 
const struct device *const uart0_dev
 
float hdcTemp
 
float hdcHumidity
 
char * cmdLineParameter []
 array of pointers to command line parameter strings
 
uint8_t numParameters
 
char devIDStr []
 
int ret
 
uint8_t buffer_tx []
 SPI transmit buffer.
 
uint8_t buffer_rx []
 SPI receive buffer0.
 
struct spi_buf tx_bufs []
 SPI TX buffer structure.
 
struct spi_buf rx_bufs []
 SPI RX buffer structure.
 
struct spi_config spi_cfg1
 SPI configuration.
 
struct spi_config spi_cfg2
 SPI configuration.
 
const struct spi_buf_set tx
 SPI TX buffer structure.
 
const struct spi_buf_set rx
 SPI RX buffer structure.
 
const struct spi_cs_control spi_cs1
 
const struct spi_cs_control spi_cs2
 
const struct gpio_dt_spec spics1n
 
const struct gpio_dt_spec spics2n
 
const struct device *const spi_dev
 
uint32_t sensorTypePresentAll
 
float adc_voltage []
 last ADC voltage read [0] battery
 
uint8_t flashReadIn []
 
const struct gpio_dt_spec baten
 get the GPIO specification for the BATEN pin defined by BATEN_NODE
 
struct k_sem hdc_rdy_seen
 
struct k_sem uart_rx_disabled_sem
 
char resetCause []
 
char myStr []
 
flashParametersStruct flashParameters
 working valuses of flash parameters in RAM
 
uint8_t tmpData []
 
uint32_t bleIndex
 
uint8_t stopWDTFeed
 stop Watch Dog Timer feed causing a WDT interrupt for testing
 
uint8_t hdcMinutes
 
struct bme68x_dev bme688_dev
 BME688 device.
 
struct bme68x_data BME688Data
 
char cliCMD []
 
uint8_t sendingDeviceInfo
 flag to indicate sending device info in BLE packet instead of sensor data
 
long long gatewayDateTime
 
char gatewayEpoch []
 

Detailed Description

common struct, enum, externs, prototypes

Author
T. J. Mulrooney

Definition in file jfet_common.h.

Macro Definition Documentation

◆ BOARD_NAME

#define BOARD_NAME   "BLE Sensor Prototype"

Definition at line 34 of file jfet_common.h.

◆ BOARD_NAME_EXT

#define BOARD_NAME_EXT   " V1.0 (nRF52832)"

Definition at line 39 of file jfet_common.h.

◆ DATA_LENGTH

#define DATA_LENGTH   20

Definition at line 51 of file jfet_common.h.

◆ DEFAULT_DUTYCYCLE

#define DEFAULT_DUTYCYCLE   TEN_SECONDS

Definition at line 44 of file jfet_common.h.

◆ EXPAND_AND_STR

#define EXPAND_AND_STR ( x)
Value:
STR(x)
#define STR(x)
Definition jfet_common.h:53

Definition at line 54 of file jfet_common.h.

◆ FALSE

#define FALSE   0

Definition at line 41 of file jfet_common.h.

◆ FAST_FREQ

#define FAST_FREQ   16000000

Definition at line 49 of file jfet_common.h.

◆ FLASHBLESTART

#define FLASHBLESTART   (FLASHPARAMETERSTART + 0x10)

Definition at line 78 of file jfet_common.h.

◆ FLASHPARAMETERKEY

#define FLASHPARAMETERKEY   0X12345678

Definition at line 79 of file jfet_common.h.

◆ FLASHPARAMETERSTART

#define FLASHPARAMETERSTART   0

Definition at line 77 of file jfet_common.h.

◆ HIGHHUMIDITYACTIVE

#define HIGHHUMIDITYACTIVE   0x08

Definition at line 63 of file jfet_common.h.

◆ HIGHHUMIDITYENABLE

#define HIGHHUMIDITYENABLE   0x04

Definition at line 62 of file jfet_common.h.

◆ HIGHTEMPACTIVE

#define HIGHTEMPACTIVE   0x08

Definition at line 59 of file jfet_common.h.

◆ HIGHTEMPENABLE

#define HIGHTEMPENABLE   0x04

Definition at line 58 of file jfet_common.h.

◆ LOWHUMIDITYACTIVE

#define LOWHUMIDITYACTIVE   0x02

Definition at line 61 of file jfet_common.h.

◆ LOWHUMIDITYENABLE

#define LOWHUMIDITYENABLE   0x01

Definition at line 60 of file jfet_common.h.

◆ LOWTEMPACTIVE

#define LOWTEMPACTIVE   0x02

Definition at line 57 of file jfet_common.h.

◆ LOWTEMPENABLE

#define LOWTEMPENABLE   0x01

Definition at line 56 of file jfet_common.h.

◆ MAX_FLASH_BYTES

#define MAX_FLASH_BYTES   0x200

Definition at line 76 of file jfet_common.h.

◆ MAX_NUMBER_BLE_PACKETS

#define MAX_NUMBER_BLE_PACKETS   10

Definition at line 82 of file jfet_common.h.

◆ MAX_PARAMETERS

#define MAX_PARAMETERS   3

Definition at line 75 of file jfet_common.h.

◆ SLOW_FREQ

#define SLOW_FREQ   150000

Definition at line 48 of file jfet_common.h.

◆ SPI_BUF_SIZE

#define SPI_BUF_SIZE   128

Definition at line 46 of file jfet_common.h.

◆ SPI_SLAVE

#define SPI_SLAVE   0

Definition at line 47 of file jfet_common.h.

◆ STR

#define STR ( x)
Value:
#x

Definition at line 53 of file jfet_common.h.

◆ TRUE

#define TRUE   1

Definition at line 42 of file jfet_common.h.

◆ VERSION_DATE

#define VERSION_DATE   "BLE Sensor 07/20/26"

Definition at line 33 of file jfet_common.h.

◆ VERSION_DATE_EXT1

#define VERSION_DATE_EXT1   " (Bd 1.0 UART0)"

Definition at line 36 of file jfet_common.h.

◆ VERSION_DATE_EXT2

#define VERSION_DATE_EXT2   " (Bd 1.0 No UART0)"

Definition at line 37 of file jfet_common.h.

◆ VERSION_DATE_EXT3

#define VERSION_DATE_EXT3   " (Bd 1.0 NO SERIAL)"

Definition at line 38 of file jfet_common.h.

◆ VERSION_MAJOR

#define VERSION_MAJOR   0

Definition at line 30 of file jfet_common.h.

◆ VERSION_MINOR

#define VERSION_MINOR   15

Definition at line 31 of file jfet_common.h.

Enumeration Type Documentation

◆ SENSORTYPE

enum SENSORTYPE
Enumerator
SENSORTYPEHDC2080 
SENSORTYPEW25Q64JV 
SENSORTYPEBME688 
SENSORTYPEUNKNOWN 

Definition at line 68 of file jfet_common.h.

Function Documentation

◆ adc_sample()

int adc_sample ( void )

get a single reading from ADC channel

will read ADC_1ST_CHANNEL_ID
resoultion set to ADC_RESOLUTION in millivolts
will printout floating point value based on 3.6V max

Returns
ADC_RESOLUTION value on ADC_1ST_CHANNEL_ID if pass or -1 if failed

Definition at line 343 of file main.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bleCommand()

uint8_t bleCommand ( uint8_t * data)

Executes a BLE command.

Parameters
dataPointer to the command data
Returns
TRUE if the command is executed successfully, FALSE otherwise This function takes a pointer to the command data received over BLE, processes it, and executes the corresponding command. It includes debug print statements to indicate the received command and its length. The function can be expanded to include specific command parsing and execution logic based on the content of the data. In the provided code, there is a placeholder for command execution, and the actual implementation can be added as needed. The function currently returns TRUE to indicate that the command has been processed, but this can be modified to return FALSE if the command is invalid or if there is an error during execution.

Definition at line 2239 of file main.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ displayFlashxParameters()

void displayFlashxParameters ( void )

displays the NV flash parameters.

This also first loads the RAM flash parameters from the NV Flash Parameters
so it reloads the RAM flash parameters.

Definition at line 1021 of file w25q64jv.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ executeCmd()

void executeCmd ( char * line)

executes the command in line array.

  • prottypes *‍/

Definition at line 270 of file jfet_commandLine.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ flashxClearParameters()

void flashxClearParameters ( void )

clears/initializes the flash parameters in RAM

This is called on power up reset after the NV flash parameters have been erased
from Page 0 1nd 1. only called if the Key is not set in the NV Flash Parameters.

Definition at line 939 of file w25q64jv.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ flashxErase()

void flashxErase ( void )

erases the entire 8 Mb over the SPI bus.

Definition at line 379 of file w25q64jv.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ flashxEraseBlock1()

void flashxEraseBlock1 ( uint32_t address)

erases a 2K block page over the SPI bus.

Parameters
addressaddress of the block to be erased

Definition at line 230 of file w25q64jv.c.

Here is the call graph for this function:

◆ flashxEraseBlock2()

void flashxEraseBlock2 ( uint32_t address)

Definition at line 280 of file w25q64jv.c.

Here is the call graph for this function:

◆ flashxErasePage()

void flashxErasePage ( uint32_t address)

erases a 256 byte page over the SPI bus.

Parameters
addressaddress of the page to be erased

Definition at line 180 of file w25q64jv.c.

Here is the call graph for this function:

◆ flashxEraseSector()

void flashxEraseSector ( uint32_t address)

erases a 256K byte sector over the SPI bus.

Parameters
addressaddress of the sector to be erased

Definition at line 330 of file w25q64jv.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ flashxFillPage()

void flashxFillPage ( uint32_t address,
uint16_t data )

fills a 256 byte page with data over the SPI bus.

Parameters
address24 bit memory address of page to write
databyte to fill in page in NV memory

Definition at line 752 of file w25q64jv.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ flashxReadPage()

void flashxReadPage ( uint32_t address,
uint8_t * flashRead )

reads a 256 byte page over the SPI bus.

Parameters
address24 bit memory address of page to read
flashRead- address of data array to received bytes from NV memory

Definition at line 427 of file w25q64jv.c.

Here is the caller graph for this function:

◆ flashxWritePage()

void flashxWritePage ( uint32_t page,
uint32_t address,
uint8_t * data,
uint16_t count )

writes data to address in serial flash over the SPI bus.

Parameters
page24 bit memory address of page to write
addressaddress within page to begin writing
dataaddress of data array to get bytes to store bytes in NV memory
countnumber of bytes to write

Definition at line 542 of file w25q64jv.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBME688Data()

int getBME688Data ( int count,
uint8_t quiet )

Triggers and retrieves measurement data from the BME688.

Parameters
countNumber of samples to collect.
quietIf TRUE, suppresses debug print output.
Returns
0 on success, or a negative error code.

Definition at line 1916 of file bme68x.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCLICmd()

int8_t getCLICmd ( char * line)

parses command line to find position of command in validCLICmds array.

goes through line array separated by spaces. cmdLineParameter[numParameters]
is an array of pointers to the various parameters in the line until the end of line then
searches cmd array for a match in validCLICmds array.

Returns
int8 - position of command in command array if found. -1 if not found

Definition at line 444 of file jfet_commandLine.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCmd()

int getCmd ( uint8_t * line)
Here is the caller graph for this function:

◆ getFlashparameters()

void getFlashparameters ( void )

Read the stored flash parameter block from serial flash.

The flash parameter structure is stored in consecutive 256-byte pages. This function reads only the number of pages needed for the current sizeof(flashParametersStruct).

Definition at line 1183 of file w25q64jv.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hdc2080_rdy_seen()

void hdc2080_rdy_seen ( const struct device * dev,
struct gpio_callback * cb,
uint32_t pins )

Callback function for HDC2080 RDY pin.

Parameters
devPointer to the device structure
cbPointer to the GPIO callback structure
pinsGPIO pin mask This function is a callback that is triggered when the HDC2080 RDY pin is activated. It checks if the specific pin associated with the HDC2080 is part of the pins that triggered the callback. If it is, it gives a semaphore to indicate that the HDC2080 RDY signal has been seen, allowing other parts of the program to proceed with reading data from the sensor or performing other actions that depend on the RDY signal. The function includes commented-out code for debugging purposes, which can be used to print the state of the pin and the pins that triggered the callback.

Definition at line 2196 of file main.c.

Here is the caller graph for this function:

◆ init_i2c()

int init_i2c ( )

Initializes the I2C interface.

Returns
TRUE if successful, FALSE otherwise This function initializes the I2C interface by configuring the I2C peripheral with the specified speed and mode. It checks if the I2C device is ready and then configures it. If any step fails, it returns FALSE; otherwise, it returns TRUE to indicate successful initialization.

Note: The I2C speed is set to fast mode, and the device is configured as a controller. The function also includes debug print statements to indicate the status of the initialization process.

Definition at line 2160 of file main.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initBME688()

int initBME688 ( void )

Initializes the BME688 sensor over SPI. Performs interface initialization, device reset, and basic data verification.

Returns
0 on success, or a negative error code.

Definition at line 1831 of file bme68x.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initHDC2080()

int initHDC2080 ( void )

Initializes the HDC2080 sensor with default parameters.

Returns
TRUE if the sensor is found and initialized, FALSE otherwise.

Definition at line 839 of file HDC2080.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initW25Q64JV()

int initW25Q64JV ( void )

Initiailizes the W25Q64JW.

This will read the WHO_AM_I value to determine if a W25Q64JW is connected.
It will set SENSORTYPEW25Q64JW if a W25Q64JW is available.

Returns
TRUE if W25Q64JW connected, FALSE if W25Q64JW not connected.

Definition at line 1254 of file w25q64jv.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ int64_to_string()

void int64_to_string ( int64_t num,
char * str )

Converts a 64-bit signed integer to a null-terminated string.

Parameters
numThe 64-bit integer to convert.
strPointer to the destination buffer (must be large enough to hold the result).

Definition at line 663 of file jfet_commandLine.c.

Here is the caller graph for this function:

◆ myPrintk()

int myPrintk ( char *restrict fmt,
... )

Definition at line 2310 of file main.c.

Here is the caller graph for this function:

◆ myPrintkE()

int myPrintkE ( char *restrict fmt,
... )

prints an error message to the UART

Parameters
fmtformat string
Returns
number of characters printed This function prints an error message to the UART in red color. It takes a format string and additional arguments, similar to printf, and formats the message accordingly. The function uses ANSI escape codes to set the text color to red before printing the message and resets it back to default afterward. The number of characters printed is returned as an integer.

Definition at line 2452 of file main.c.

Here is the caller graph for this function:

◆ myPrintkI()

int myPrintkI ( char *restrict fmt,
... )

prints an information message to the UART

Parameters
fmtformat string
Returns
number of characters printed This function prints an information message to the UART in green color. It takes a format string and additional arguments, similar to printf, and formats the message accordingly. The function uses ANSI escape codes to set the text color to green before printing the message and resets it back to default afterward. The number of characters printed is returned as an integer.

Definition at line 2386 of file main.c.

Here is the caller graph for this function:

◆ myPrintkS()

int myPrintkS ( char *restrict fmt,
... )

prints a status message to the UART

Parameters
fmtformat string
Returns
number of characters printed This function prints a status message to the UART in cyan color. It takes a format string and additional arguments, similar to printf, and formats the message accordingly. The function uses ANSI escape codes to set the text color to cyan before printing the message and resets it back to default afterward. The number of characters printed is returned as an integer.

Definition at line 2419 of file main.c.

Here is the caller graph for this function:

◆ myPrintkW()

int myPrintkW ( char *restrict fmt,
... )

prints a warning message to the UART

Parameters
fmtformat string
Returns
number of characters printed This function prints a warning message to the UART in yellow color. It takes a format string and additional arguments, similar to printf, and formats the message accordingly. The function uses ANSI escape codes to set the text color to yellow before printing the message and resets it back to default afterward. The number of characters printed is returned as an integer.

Definition at line 2353 of file main.c.

Here is the caller graph for this function:

◆ readNVFlashxID()

void readNVFlashxID ( uint8_t * flashId)

reads the NV Flash ID over the SPI bus.

Parameters
flashIdpointer to the buffer to receive the Flash ID bytes

Definition at line 34 of file w25q64jv.c.

Here is the caller graph for this function:

◆ readNVFlashxStatus()

void readNVFlashxStatus ( uint8_t * flashStatus)

reads the 3 NV Flash status registers over the SPI bus.

Parameters
flashStatuspointer to the buffer to receive the Flash Status bytes

Definition at line 61 of file w25q64jv.c.

Here is the caller graph for this function:

◆ rescan()

void rescan ( void )

rescan all I2C and SPI devices

This function rescans all I2C and SPI devices by calling the initialization functions for each device. It checks if the HDC2080, W25Q64JV, and BME688 devices are available and properly initialized. If any of the initialization functions fail, it can be modified to handle the error accordingly. The function includes calls to the initialization functions for each device and can be expanded to include additional devices as needed. The current implementation assumes that the initialization functions will handle any necessary error reporting and that the rescan function will simply call them in sequence.

Definition at line 2281 of file main.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFlashxParameters()

void setFlashxParameters ( uint8_t display)

loads the NV Flash parameters from teh RAM flash parameters

Parameters
displaytrue to display parameters after the write, false to not display after a write

Definition at line 1122 of file w25q64jv.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sw2_seen()

void sw2_seen ( const struct device * dev,
struct gpio_callback * cb,
uint32_t pins )

Callback function for SW2 button.

Parameters
devPointer to the device structure
cbPointer to the GPIO callback structure
pinsGPIO pin mask This function is a callback that is triggered when the SW2 button is pressed. It checks if the specific pin associated with the SW2 button is part of the pins that triggered the callback. If it is, it gives a semaphore to indicate that the SW2 button has been seen, allowing other parts of the program to proceed with actions that depend on the SW2 button press. The function includes commented-out code for debugging purposes, which can be used to print the state of the pin and the pins that triggered the callback.

Definition at line 2219 of file main.c.

Here is the caller graph for this function:

Variable Documentation

◆ adc_voltage

float adc_voltage[]
extern

last ADC voltage read [0] battery

Definition at line 31 of file globals.c.

◆ baten

const struct gpio_dt_spec baten
extern

get the GPIO specification for the BATEN pin defined by BATEN_NODE

Definition at line 175 of file main.c.

◆ bleIndex

uint32_t bleIndex
extern

Definition at line 37 of file globals.c.

◆ bme688_dev

struct bme68x_dev bme688_dev
extern

BME688 device.

Definition at line 40 of file globals.c.

◆ BME688Data

struct bme68x_data BME688Data
extern

Definition at line 44 of file globals.c.

◆ buffer_rx

uint8_t buffer_rx[]
extern

SPI receive buffer0.

Definition at line 43 of file globals.c.

◆ buffer_tx

uint8_t buffer_tx[]
extern

SPI transmit buffer.

Definition at line 42 of file globals.c.

◆ cliCMD

char cliCMD[]
extern

Definition at line 45 of file globals.c.

◆ cmdLineParameter

char* cmdLineParameter[]
extern

array of pointers to command line parameter strings

Definition at line 27 of file globals.c.

◆ deviceID

uint16_t deviceID
extern

Definition at line 24 of file globals.c.

◆ devIDStr

char devIDStr[]
extern

Definition at line 29 of file globals.c.

◆ flashParameters

flashParametersStruct flashParameters
extern

working valuses of flash parameters in RAM

Definition at line 35 of file globals.c.

◆ flashReadIn

uint8_t flashReadIn[]
extern

Definition at line 32 of file globals.c.

◆ gatewayDateTime

long long gatewayDateTime
extern

Definition at line 47 of file globals.c.

◆ gatewayEpoch

char gatewayEpoch[]
extern

Definition at line 48 of file globals.c.

◆ hdc_rdy_seen

struct k_sem hdc_rdy_seen
extern

◆ hdcHumidity

float hdcHumidity
extern

Definition at line 26 of file globals.c.

◆ hdcMinutes

uint8_t hdcMinutes
extern

Definition at line 39 of file globals.c.

◆ hdcTemp

float hdcTemp
extern

Definition at line 25 of file globals.c.

◆ i2c_dev

const struct device* const i2c_dev
extern

get the device structure for the I2C device defined by I2C_DEV_NODE

Definition at line 106 of file main.c.

◆ manfID

uint16_t manfID
extern

Definition at line 23 of file globals.c.

◆ myStr

char myStr[]
extern

Definition at line 34 of file globals.c.

◆ numParameters

uint8_t numParameters
extern

Definition at line 28 of file globals.c.

◆ resetCause

char resetCause[]
extern

Definition at line 33 of file globals.c.

◆ ret

int ret
extern

Definition at line 41 of file globals.c.

◆ rx

const struct spi_buf_set rx
extern

SPI RX buffer structure.

Definition at line 127 of file globals.c.

◆ rx_bufs

struct spi_buf rx_bufs[]
extern

SPI RX buffer structure.

Definition at line 118 of file globals.c.

◆ sendingDeviceInfo

uint8_t sendingDeviceInfo
extern

flag to indicate sending device info in BLE packet instead of sensor data

Definition at line 46 of file globals.c.

◆ sensorTypePresentAll

uint32_t sensorTypePresentAll
extern

Definition at line 30 of file globals.c.

◆ spi_cfg1

struct spi_config spi_cfg1
extern

SPI configuration.

Definition at line 91 of file globals.c.

◆ spi_cfg2

struct spi_config spi_cfg2
extern

SPI configuration.

Definition at line 101 of file globals.c.

◆ spi_cs1

const struct spi_cs_control spi_cs1
extern

Definition at line 81 of file globals.c.

◆ spi_cs2

const struct spi_cs_control spi_cs2
extern

Definition at line 86 of file globals.c.

◆ spi_dev

const struct device* const spi_dev
extern

Definition at line 79 of file globals.c.

◆ spics1n

const struct gpio_dt_spec spics1n
extern

Definition at line 55 of file globals.c.

◆ spics2n

const struct gpio_dt_spec spics2n
extern

Definition at line 63 of file globals.c.

◆ stopWDTFeed

uint8_t stopWDTFeed
extern

stop Watch Dog Timer feed causing a WDT interrupt for testing

Definition at line 38 of file globals.c.

◆ tmpData

uint8_t tmpData[]
extern

Definition at line 36 of file globals.c.

◆ tx

const struct spi_buf_set tx
extern

SPI TX buffer structure.

Definition at line 125 of file globals.c.

◆ tx_bufs

struct spi_buf tx_bufs[]
extern

SPI TX buffer structure.

Definition at line 111 of file globals.c.

◆ uart0_dev

const struct device* const uart0_dev
extern

◆ uart_rx_disabled_sem

struct k_sem uart_rx_disabled_sem
extern