Appiko
|
Macros | |
#define | S2LPPktWMbusSetPreambleLength(xPreambleLength) S2LPPktCommonSetPreambleLength((PktPreambleLength)xPreambleLength) |
Sets the PREAMBLE field length for S2LP Basic packets. More... | |
#define | S2LPPktWMbusGetPreambleLength() S2LPPktCommonGetPreambleLength() |
Returns the PREAMBLE field length mode for S2LP Basic packets. More... | |
Functions | |
void | S2LPPktWMbusInit (PktWMbusInit *pxPktWMbusInit) |
Initialize the S2LP WMBUS packet according to the specified parameters in the PktWMbusInit struct. More... | |
void | S2LPPktWMbusGetInfo (PktWMbusInit *pxPktWMbusInit) |
Return the S2LP WMBUS packet structure according to the specified parameters in the registers. More... | |
void | S2LPPktWMbusSetFormat (void) |
Configure the WMBUS packet format as the one used by S2LP. More... | |
void | S2LPPktWMbusSetPostamble (uint8_t cPostamble) |
Set how many chips will be used in postamble. More... | |
uint8_t | S2LPPktWMbusGetPostamble (void) |
Returns how many chips are used in the postamble. More... | |
void | S2LPPktWMbusSetPostamblePattern (uint8_t cPostamble) |
Set the pattern of the postamble. More... | |
uint8_t | S2LPPktWMbusGetPostamblePattern (void) |
Returns the pattern of the postamble. More... | |
void | S2LPPktWMbusSetSubmode (WMbusSubmode xWMbusSubmode) |
Set the W-MBus submode. More... | |
WMbusSubmode | S2LPPktWMbusGetSubmode (void) |
Return the WMBUS submode used. More... | |
void | S2LPPktWMbusSetPayloadLength (uint16_t nPayloadLength) |
Sets the payload length for S2LP WMBUS packets. More... | |
uint16_t | S2LPPktWMbusGetPayloadLength (void) |
Return the payload length for WMBUS packets. More... | |
#define S2LPPktWMbusGetPreambleLength | ( | ) | S2LPPktCommonGetPreambleLength() |
None. |
uint8_t | Preamble field length in bytes. |
Definition at line 135 of file S2LP_PktWMbus.h.
#define S2LPPktWMbusSetPreambleLength | ( | xPreambleLength | ) | S2LPPktCommonSetPreambleLength((PktPreambleLength)xPreambleLength) |
xPreambleLength | length of PREAMBLE field in bytes. This parameter can be any value of BasicPreambleLength. |
None. |
Definition at line 127 of file S2LP_PktWMbus.h.
void S2LPPktWMbusGetInfo | ( | PktWMbusInit * | pxPktWMbusInit | ) |
pxPktWMbusInit | WMBUS packet init structure. This parameter is a pointer to PktWMbusInit. |
None. |
Definition at line 178 of file S2LP_PktWMbus.c.
References S2LPGetPreambleLength().
uint16_t S2LPPktWMbusGetPayloadLength | ( | void | ) |
None. |
uint16_t | Payload length in bytes. |
Definition at line 325 of file S2LP_PktWMbus.c.
References g_xStatus.
uint8_t S2LPPktWMbusGetPostamble | ( | void | ) |
None. |
uint8_t | Postamble in number chip sequences. |
Definition at line 261 of file S2LP_PktWMbus.c.
References g_xStatus.
uint8_t S2LPPktWMbusGetPostamblePattern | ( | void | ) |
None. |
uint8_t | Postamble in chips. |
Definition at line 274 of file S2LP_PktWMbus.c.
References g_xStatus.
WMbusSubmode S2LPPktWMbusGetSubmode | ( | void | ) |
None. |
WMbusSubmode | WMBUS submode. |
Definition at line 298 of file S2LP_PktWMbus.c.
void S2LPPktWMbusInit | ( | PktWMbusInit * | pxPktWMbusInit | ) |
pxPktWMbusInit | pointer to a PktWMbusInit structure that contains the configuration information for the specified S2LP WMBUS PACKET FORMAT. This parameter is a pointer to PktWMbusInit. |
None. |
Definition at line 108 of file S2LP_PktWMbus.c.
void S2LPPktWMbusSetFormat | ( | void | ) |
void S2LPPktWMbusSetPayloadLength | ( | uint16_t | nPayloadLength | ) |
nPayloadLength | payload length in bytes. This parameter is an uint16_t. |
None. |
Definition at line 310 of file S2LP_PktWMbus.c.
References g_xStatus.
void S2LPPktWMbusSetPostamble | ( | uint8_t | cPostamble | ) |
cPostamble | the number of chip sequence. This parameter is an uint8_t. |
None. |
Definition at line 231 of file S2LP_PktWMbus.c.
References g_xStatus.
void S2LPPktWMbusSetPostamblePattern | ( | uint8_t | cPostamble | ) |
cPostamble | id the preamble pattern: This parameter can be '00','01','10' or '11'. This parameter is an uint8_t. |
None. |
Definition at line 247 of file S2LP_PktWMbus.c.
References g_xStatus.
void S2LPPktWMbusSetSubmode | ( | WMbusSubmode | xWMbusSubmode | ) |
xWMbusSubmode | This parameter of WMbusSubmode . |
None. |
Definition at line 287 of file S2LP_PktWMbus.c.