33 lines
989 B
C
Executable File
33 lines
989 B
C
Executable File
//
|
|
// Created by cfif on 05.07.23.
|
|
//
|
|
|
|
#ifndef SOCKET_TELIT_INT_H
|
|
#define SOCKET_TELIT_INT_H
|
|
|
|
#include "SocketSerialPort_Telit.h"
|
|
|
|
void GsmSocketSlot_Init(tGsmSocketSlot *slot, uint16_t bufLen);
|
|
|
|
void Gsm_InitSocket(tSocketGsm *env);
|
|
|
|
tSerialPortIO GsmSocket_InitIO(tSocketGsm *env);
|
|
|
|
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_Socket_close(tSocketGsm *env, uint8_t contextId);
|
|
|
|
uint8_t Gsm_Socket_open(tSocketGsm *env, eSocketType type, char *addr, size_t addrSize, uint16_t port, uint32_t timeout);
|
|
|
|
size_t Gsm_Socket_read(tSocketGsm *env, uint8_t contextId, uint8_t *data, size_t size, uint32_t timeout);
|
|
|
|
size_t Gsm_Socket_send(tSocketGsm *env, uint8_t contextId, uint8_t *data, size_t size, uint32_t timeout);
|
|
|
|
eSocketStatus Gsm_Socket_status(tSocketGsm *env, uint8_t contextId);
|
|
|
|
#endif //SOCKET_TELIT_INT_H
|