Zephyr Project API 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ubx.h File Reference

Go to the source code of this file.

Data Structures

struct  modem_ubx_match
 
struct  modem_ubx_script
 
struct  modem_ubx
 
struct  modem_ubx_config
 

Macros

#define MODEM_UBX_MATCH_ARRAY_DEFINE(_name, ...)    struct modem_ubx_match _name[] = {__VA_ARGS__};
 
#define MODEM_UBX_MATCH_DEFINE(_class_id, _msg_id, _handler)
 

Typedefs

typedef void(* modem_ubx_match_callback) (struct modem_ubx *ubx, const struct ubx_frame *frame, size_t len, void *user_data)
 

Functions

int modem_ubx_attach (struct modem_ubx *ubx, struct modem_pipe *pipe)
 Attach pipe to Modem Ubx.
 
void modem_ubx_release (struct modem_ubx *ubx)
 Release pipe from Modem Ubx instance.
 
int modem_ubx_init (struct modem_ubx *ubx, const struct modem_ubx_config *config)
 Initialize Modem Ubx instance.
 
int modem_ubx_run_script (struct modem_ubx *ubx, struct modem_ubx_script *script)
 Writes the ubx frame in script.request and reads back its response (if available)
 
int modem_ubx_run_script_for_each (struct modem_ubx *ubx, struct modem_ubx_script *script, struct ubx_frame *array, size_t array_size)