SMART_COMPONENTS_SOCKET/Gsm_SockInt.h

28 lines
1.0 KiB
C

//
// Created by cfif on 05.07.23.
//
#ifndef SMART_COMPONENTS_GSM_SOCKINT_H
#define SMART_COMPONENTS_GSM_SOCKINT_H
#include "GsmWithGnss.h"
void Gsm_Socket_close(tGsmWithGnss *env, uint8_t contextId);
uint8_t Gsm_Socket_open(tGsmWithGnss *env, eSocketType type, eAtGsmSimComA7600_SSL_Type clientType, char *addr, size_t addrSize, uint16_t port, uint32_t timeout);
size_t Gsm_Socket_read(tGsmWithGnss *env, uint8_t contextId, uint8_t *data, size_t size, uint32_t timeout);
size_t Gsm_Socket_send(tGsmWithGnss *env, uint8_t contextId, uint8_t *data, size_t size, uint32_t timeout);
eSocketStatus Gsm_Socket_status(tGsmWithGnss *env, uint8_t contextId);
void GsmSocketSlot_Init(tGsmSocketSlot *slot, uint32_t bufLen);
void GsmSocketSlot_Set(tGsmSocketSlot *slot, eSocketType type, char *addr, size_t addrSize, uint16_t port);
void GsmSocketSlot_Clear(tGsmSocketSlot *slot);
bool GsmSocketSlot_IsClear(tGsmSocketSlot *slot);
void Gsm_InitSocket(tGsmWithGnss *env);
void Gsm_InitIO(tGsmWithGnss *env);
#endif //SMART_COMPONENTS_GSM_SOCKINT_H