cMicroOrp  1.0.0
C code for microcontrollers - provides ORP remote interface
orp_protocol.c File Reference
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stddef.h>
#include "orp.h"

Functions

void orp_protocol (char *app_orp_txBuffer, size_t app_orp_txBuffer_size, orp_hdlc_tx_cb tx_serial_cb, uint8_t *hdlc_rxBuffer, uint16_t hdlc_rxBuffer_size, orp_protocol_genericRequestResponse_cb appRequestIn_cbf, orp_protocol_genericNotification_cb appNotificationIn_cbf)
 
void orp_protocol_processHdlcRx (uint8_t data)
 
void orp_protocol_wakeup (orp_delay100ms_cb delay100ms)
 
int16_t orp_protocol_createResource (char packetType, char dataType, const char *path, const char *units)
 
int16_t orp_protocol_pushValue (uint8_t dataType, const char *path, const char *data)
 
int16_t orp_protocol_addpushHandler (uint8_t dataType, const char *path)
 

Function Documentation

◆ orp_protocol()

void orp_protocol ( char *  app_orp_txBuffer,
size_t  app_orp_txBuffer_size,
orp_hdlc_tx_cb  tx_serial_cb,
uint8_t *  hdlc_rxBuffer,
uint16_t  hdlc_rxBuffer_size,
orp_protocol_genericRequestResponse_cb  appRequestIn_cbf,
orp_protocol_genericNotification_cb  appNotificationIn_cbf 
)

◆ orp_protocol_addpushHandler()

int16_t orp_protocol_addpushHandler ( uint8_t  dataType,
const char *  path 
)

◆ orp_protocol_createResource()

int16_t orp_protocol_createResource ( char  packetType,
char  dataType,
const char *  path,
const char *  units 
)

◆ orp_protocol_processHdlcRx()

void orp_protocol_processHdlcRx ( uint8_t  data)

◆ orp_protocol_pushValue()

int16_t orp_protocol_pushValue ( uint8_t  dataType,
const char *  path,
const char *  data 
)

◆ orp_protocol_wakeup()

void orp_protocol_wakeup ( orp_delay100ms_cb  delay100ms)