Callisto4Bootloader: ARK/platform_encoder.c File Reference

Callisto4Bootloader

Functions
platform_encoder.c File Reference
`#include "platform-api.h"`
`#include "platform_encoder.h"`

Go to the source code of this file.

## Functions

const stPayloadEncoder_t * | PayloadEncoder_Get (uint16_t ui16MediaType)
const stPayloadDecoder_t * | PayloadDecoder_Get (uint16_t ui16MediaType)

## Function Documentation

## ◆ PayloadDecoder_Get()

const stPayloadDecoder_t* PayloadDecoder_Get | ( | uint16_t | ui16MediaType | ) |

Get the decoder implementing a given CoAP content type

Parameters

  [in] | ui16MediaType | CoAP content type (50 = JSON, 60 = CBOR)

Returns
  NULL if content type not recognised, else a pointer to an decoder

Definition at line 40 of file platform_encoder.c.

References NULL, stCBORDecoder, and stJSONDecoder.

Referenced by PUT_Callback().

## ◆ PayloadEncoder_Get()

const stPayloadEncoder_t* PayloadEncoder_Get | ( | uint16_t | ui16MediaType | ) |

Get the encoder implementing a given CoAP content type

Parameters

  [in] | ui16MediaType | CoAP content type (50 = JSON, 60 = CBOR)

Returns
  NULL if content type not recognised, else a pointer to an encoder

Definition at line 18 of file platform_encoder.c.

References NULL, stCBOREncoder, and stJSONEncoder.

Referenced by GET_Callback().