gsmgps 2.0.0.0
|
This file contains API for GSMGPS Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | gsmgps_t |
Click ctx object definition. More... | |
struct | gsmgps_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | gsmgps_error_t |
Error type. | |
Enumerations | |
enum | gsmgps_return_value_t { GSMGPS_OK = 0 , GSMGPS_ERROR = -1 } |
GSM-GPS Click return value data. More... | |
Functions | |
void | gsmgps_cfg_setup (gsmgps_cfg_t *cfg) |
Config Object Initialization function. | |
GSMGPS_RETVAL | gsmgps_init (gsmgps_t *ctx, gsmgps_cfg_t *cfg) |
Initialization function. | |
void | gsmgps_module_power (gsmgps_t *ctx, uint8_t state) |
Power ON/OFF the module. | |
void | gsmgps_generic_write (gsmgps_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | gsmgps_generic_read (gsmgps_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | gsmgps_set_rts (gsmgps_t *ctx, uint8_t state) |
Sets state of the RTS pin. | |
uint8_t | gsmgps_get_cts (gsmgps_t *ctx) |
CTS Pin Get function. | |
void | gsmgps_send_cmd (gsmgps_t *ctx, char *cmd) |
Send command function. | |
void | gsmgps_send_cmd_with_parameter (gsmgps_t *ctx, char *at_cmd_buf, char *param_buf) |
Send command function with parameter. | |
void | gsmgps_send_cmd_check (gsmgps_t *ctx, char *at_cmd_buf) |
Check the sent command. | |
void | gsmgps_send_cmd_parameter_check (gsmgps_t *ctx, char *at_cmd_buf) |
Check the command parameters. | |
void | gsmgps_set_sim_apn (gsmgps_t *ctx, char *sim_apn) |
Set sim card APN. | |
void | gsmgps_send_sms_text (gsmgps_t *ctx, char *phone_number, char *sms_text) |
GSM-GPS send SMS in text mode. | |
err_t | gsmgps_send_sms_pdu (gsmgps_t *ctx, char *service_center_number, char *phone_number, char *sms_text) |
GSM-GPS send SMS in PDU mode. | |
gsmgps_error_t | gsmgps_generic_parser (char *rsp, uint8_t command, uint8_t element, char *parser_buf) |
Generic parser function. | |
This file contains API for GSMGPS Click driver.