ST / X_NUCLEO_PLC01A1

Dependents:   HelloWorld_PLC01A1

Embed: (wiki syntax)

« Back to documentation index

plc Exported variables

plc Exported variables
[PLC_Exported_Types]

Exported variables. More...

Data Structures

struct  SSRELAY_DrvTypeDef
 SSRELAY driver structure definition. More...
struct  DIGITALINPUTARRAY_DrvTypeDef
 DIGITALINPUTARRAY driver structure definition. More...

Functions

uint16_t convertFrom8To16 (uint8_t *ptr)
 Converts two uint8_t words into one of uint16_t.
void convertFrom16To8 (uint16_t data16, uint8_t *ptr)
 Converts one uint16_t word into two uint8_t.

Detailed Description

Exported variables.


Function Documentation

void convertFrom16To8 ( uint16_t  data16,
uint8_t *  ptr 
)

Converts one uint16_t word into two uint8_t.

Parameters:
[in]ptrpointer to the buffer of uint8_t words.
[in]16-bitdata.
Return values:
none.

Definition at line 145 of file plc.h.

uint16_t convertFrom8To16 ( uint8_t *  ptr )

Converts two uint8_t words into one of uint16_t.

Parameters:
[in]ptrpointer to the buffer of data to be converted.
Return values:
16-bitdata.

Definition at line 129 of file plc.h.