Searched refs:structTpdu (Results 1 – 2 of 2) sorted by relevance
37 uint16_t Tpdu_toByteArray(Tpdu *structTpdu, uint8_t *baTpdu) { in Tpdu_toByteArray() argument39 baTpdu[NAD_OFFSET_IN_TPDU] = structTpdu->nad; in Tpdu_toByteArray()42 baTpdu[PCB_OFFSET_IN_TPDU] = structTpdu->pcb; in Tpdu_toByteArray()45 baTpdu[LEN_OFFSET_IN_TPDU] = structTpdu->len; in Tpdu_toByteArray()49 for (i = 0; i < structTpdu->len; i++) { in Tpdu_toByteArray()50 baTpdu[DATA_OFFSET_IN_TPDU + i] = structTpdu->data[i]; in Tpdu_toByteArray()54 uint16_t checksumOffsetInTpdu = DATA_OFFSET_IN_TPDU + structTpdu->len; in Tpdu_toByteArray()60 Tpdu_getChecksumBytes(structTpdu, checksum); in Tpdu_toByteArray()66 Tpdu_getChecksumBytes(structTpdu, checksum); in Tpdu_toByteArray()
68 uint16_t Tpdu_toByteArray(Tpdu *structTpdu, uint8_t *baTpdu);