Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated APIs for setting 1-bit fields for all formats. #75

Merged
merged 2 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/hello-world/hello-world-talker.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static int init_cf_pdu(uint8_t* pdu)
Avtp_Tscf_t* tscf_pdu = (Avtp_Tscf_t*) pdu;
memset(tscf_pdu, 0, AVTP_TSCF_HEADER_LEN);
Avtp_Tscf_Init(tscf_pdu);
Avtp_Tscf_SetTu(tscf_pdu, 0U);
Avtp_Tscf_DisableTu(tscf_pdu);
Avtp_Tscf_SetSequenceNum(tscf_pdu, seq_num++);
Avtp_Tscf_SetStreamId(tscf_pdu, STREAM_ID);
res = AVTP_TSCF_HEADER_LEN;
Expand Down
14 changes: 9 additions & 5 deletions include/avtp/Crf.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of Intel Corporation, COVESA nor the names of their
* contributors may be used to endorse or promote products derived from
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Expand Down Expand Up @@ -101,11 +101,15 @@ uint16_t Avtp_Crf_GetTimestampInterval(Avtp_Crf_t* pdu);
void Avtp_Crf_SetField(Avtp_Crf_t* pdu, Avtp_CrfField_t field, uint64_t value);

void Avtp_Crf_SetSubtype(Avtp_Crf_t* pdu, uint8_t value);
void Avtp_Crf_SetSv(Avtp_Crf_t* pdu, uint8_t value);
void Avtp_Crf_EnableSv(Avtp_Crf_t* pdu);
void Avtp_Crf_DisableSv(Avtp_Crf_t* pdu);
void Avtp_Crf_SetVersion(Avtp_Crf_t* pdu, uint8_t value);
void Avtp_Crf_SetMr(Avtp_Crf_t* pdu, uint8_t value);
void Avtp_Crf_SetFs(Avtp_Crf_t* pdu, uint8_t value);
void Avtp_Crf_SetTu(Avtp_Crf_t* pdu, uint8_t value);
void Avtp_Crf_EnableMr(Avtp_Crf_t* pdu);
void Avtp_Crf_DisableMr(Avtp_Crf_t* pdu);
void Avtp_Crf_EnableFs(Avtp_Crf_t* pdu);
void Avtp_Crf_DisableFs(Avtp_Crf_t* pdu);
void Avtp_Crf_EnableTu(Avtp_Crf_t* pdu);
void Avtp_Crf_DisableTu(Avtp_Crf_t* pdu);
void Avtp_Crf_SetSequenceNum(Avtp_Crf_t* pdu, uint8_t value);
void Avtp_Crf_SetType(Avtp_Crf_t* pdu, uint8_t value);
void Avtp_Crf_SetStreamId(Avtp_Crf_t* pdu, uint64_t value);
Expand Down
27 changes: 18 additions & 9 deletions include/avtp/Rvf.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,23 +177,32 @@ uint16_t Avtp_Rvf_GetLineNumber(Avtp_Rvf_t* pdu);
void Avtp_Rvf_SetField(Avtp_Rvf_t* pdu, Avtp_RvfField_t field, uint64_t value);

void Avtp_Rvf_SetSubtype(Avtp_Rvf_t* pdu, uint8_t value);
void Avtp_Rvf_SetSv(Avtp_Rvf_t* pdu, uint8_t value);
void Avtp_Rvf_EnableSv(Avtp_Rvf_t* pdu);
void Avtp_Rvf_DisableSv(Avtp_Rvf_t* pdu);
void Avtp_Rvf_SetVersion(Avtp_Rvf_t* pdu, uint8_t value);
void Avtp_Rvf_SetMr(Avtp_Rvf_t* pdu, uint8_t value);
void Avtp_Rvf_SetTv(Avtp_Rvf_t* pdu, uint8_t value);
void Avtp_Rvf_EnableMr(Avtp_Rvf_t* pdu);
void Avtp_Rvf_DisableMr(Avtp_Rvf_t* pdu);
void Avtp_Rvf_EnableTv(Avtp_Rvf_t* pdu);
void Avtp_Rvf_DisableTv(Avtp_Rvf_t* pdu);
void Avtp_Rvf_SetSequenceNum(Avtp_Rvf_t* pdu, uint8_t value);
void Avtp_Rvf_SetTu(Avtp_Rvf_t* pdu, uint8_t value);
void Avtp_Rvf_EnableTu(Avtp_Rvf_t* pdu);
void Avtp_Rvf_DisableTu(Avtp_Rvf_t* pdu);
void Avtp_Rvf_SetStreamId(Avtp_Rvf_t* pdu, uint64_t value);
void Avtp_Rvf_SetAvtpTimestamp(Avtp_Rvf_t* pdu, uint32_t value);
void Avtp_Rvf_SetActivePixels(Avtp_Rvf_t* pdu, uint16_t value);
void Avtp_Rvf_SetTotalLines(Avtp_Rvf_t* pdu, uint16_t value);
void Avtp_Rvf_SetStreamDataLength(Avtp_Rvf_t* pdu, uint16_t value);
void Avtp_Rvf_SetAp(Avtp_Rvf_t* pdu, uint8_t value);
void Avtp_Rvf_setF(Avtp_Rvf_t* pdu, uint8_t value);
void Avtp_Rvf_SetEf(Avtp_Rvf_t* pdu, uint8_t value);
void Avtp_Rvf_EnableAp(Avtp_Rvf_t* pdu);
void Avtp_Rvf_DisableAp(Avtp_Rvf_t* pdu);
void Avtp_Rvf_EnableF(Avtp_Rvf_t* pdu);
void Avtp_Rvf_DisableF(Avtp_Rvf_t* pdu);
void Avtp_Rvf_EnableEf(Avtp_Rvf_t* pdu);
void Avtp_Rvf_DisableEf(Avtp_Rvf_t* pdu);
void Avtp_Rvf_SetEvt(Avtp_Rvf_t* pdu, uint8_t value);
void Avtp_Rvf_SetPd(Avtp_Rvf_t* pdu, uint8_t value);
void Avtp_Rvf_SetI(Avtp_Rvf_t* pdu, uint8_t value);
void Avtp_Rvf_EnablePd(Avtp_Rvf_t* pdu);
void Avtp_Rvf_DisablePd(Avtp_Rvf_t* pdu);
void Avtp_Rvf_EnableI(Avtp_Rvf_t* pdu);
void Avtp_Rvf_DisableI(Avtp_Rvf_t* pdu);
void Avtp_Rvf_SetPixelDepth(Avtp_Rvf_t* pdu, Avtp_RvfPixelDepth_t value);
void Avtp_Rvf_SetPixelFormat(Avtp_Rvf_t* pdu, Avtp_RvfPixelFormat_t value);
void Avtp_Rvf_SetFrameRate(Avtp_Rvf_t* pdu, Avtp_RvfFrameRate_t value);
Expand Down
15 changes: 10 additions & 5 deletions include/avtp/aaf/Aaf.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,23 @@ uint8_t Avtp_Aaf_GetEvt(Avtp_Aaf_t* pdu);
void Avtp_Aaf_SetField(Avtp_Aaf_t* pdu, Avtp_AafFields_t field, uint64_t value);

void Avtp_Aaf_SetSubtype(Avtp_Aaf_t* pdu, uint8_t value);
void Avtp_Aaf_SetSv(Avtp_Aaf_t* pdu, uint8_t value);
void Avtp_Aaf_EnableSv(Avtp_Aaf_t* pdu);
void Avtp_Aaf_DisableSv(Avtp_Aaf_t* pdu);
void Avtp_Aaf_SetVersion(Avtp_Aaf_t* pdu, uint8_t value);
void Avtp_Aaf_SetMr(Avtp_Aaf_t* pdu, uint8_t value);
void Avtp_Aaf_SetTv(Avtp_Aaf_t* pdu, uint8_t value);
void Avtp_Aaf_EnableMr(Avtp_Aaf_t* pdu);
void Avtp_Aaf_DisableMr(Avtp_Aaf_t* pdu);
void Avtp_Aaf_EnableTv(Avtp_Aaf_t* pdu);
void Avtp_Aaf_DisableTv(Avtp_Aaf_t* pdu);
void Avtp_Aaf_SetSequenceNum(Avtp_Aaf_t* pdu, uint8_t value);
void Avtp_Aaf_SetTu(Avtp_Aaf_t* pdu, uint8_t value);
void Avtp_Aaf_EnableTu(Avtp_Aaf_t* pdu);
void Avtp_Aaf_DisableTu(Avtp_Aaf_t* pdu);
void Avtp_Aaf_SetStreamId(Avtp_Aaf_t* pdu, uint64_t value);
void Avtp_Aaf_SetAvtpTimestamp(Avtp_Aaf_t* pdu, uint32_t value);
void Avtp_Aaf_SetFormat(Avtp_Aaf_t* pdu, uint8_t value);
void Avtp_Aaf_SetStreamDataLength(Avtp_Aaf_t* pdu, uint16_t value);
void Avtp_Aaf_SetAfsd(Avtp_Aaf_t* pdu, uint8_t value);
void Avtp_Aaf_SetSp(Avtp_Aaf_t* pdu, uint8_t value);
void Avtp_Aaf_EnableSp(Avtp_Aaf_t* pdu);
void Avtp_Aaf_DisableSp(Avtp_Aaf_t* pdu);
void Avtp_Aaf_SetEvt(Avtp_Aaf_t* pdu, uint8_t value);

#ifdef __cplusplus
Expand Down
15 changes: 10 additions & 5 deletions include/avtp/aaf/Pcm.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,20 +142,25 @@ uint8_t Avtp_Pcm_GetEvt(Avtp_Pcm_t* pdu);
void Avtp_Pcm_SetField(Avtp_Pcm_t* pdu, Avtp_PcmFields_t field, uint64_t value);

void Avtp_Pcm_SetSubtype(Avtp_Pcm_t* pdu, uint8_t value);
void Avtp_Pcm_SetSv(Avtp_Pcm_t* pdu, uint8_t value);
void Avtp_Pcm_EnableSv(Avtp_Pcm_t* pdu);
void Avtp_Pcm_DisableSv(Avtp_Pcm_t* pdu);
void Avtp_Pcm_SetVersion(Avtp_Pcm_t* pdu, uint8_t value);
void Avtp_Pcm_SetMr(Avtp_Pcm_t* pdu, uint8_t value);
void Avtp_Pcm_SetTv(Avtp_Pcm_t* pdu, uint8_t value);
void Avtp_Pcm_EnableMr(Avtp_Pcm_t* pdu);
void Avtp_Pcm_DisableMr(Avtp_Pcm_t* pdu);
void Avtp_Pcm_EnableTv(Avtp_Pcm_t* pdu);
void Avtp_Pcm_DisableTv(Avtp_Pcm_t* pdu);
void Avtp_Pcm_SetSequenceNum(Avtp_Pcm_t* pdu, uint8_t value);
void Avtp_Pcm_SetTu(Avtp_Pcm_t* pdu, uint8_t value);
void Avtp_Pcm_EnableTu(Avtp_Pcm_t* pdu);
void Avtp_Pcm_DisableTu(Avtp_Pcm_t* pdu);
void Avtp_Pcm_SetStreamId(Avtp_Pcm_t* pdu, uint64_t value);
void Avtp_Pcm_SetAvtpTimestamp(Avtp_Pcm_t* pdu, uint32_t value);
void Avtp_Pcm_SetFormat(Avtp_Pcm_t* pdu, Avtp_AafFormat_t value);
void Avtp_Pcm_SetNsr(Avtp_Pcm_t* pdu, Avtp_AafNsr_t value);
void Avtp_Pcm_SetChannelsPerFrame(Avtp_Pcm_t* pdu, uint16_t value);
void Avtp_Pcm_SetBitDepth(Avtp_Pcm_t* pdu, uint8_t value);
void Avtp_Pcm_SetStreamDataLength(Avtp_Pcm_t* pdu, uint16_t value);
void Avtp_Pcm_SetSp(Avtp_Pcm_t* pdu, Avtp_AafSp_t value);
void Avtp_Pcm_EnableSp(Avtp_Pcm_t* pdu);
void Avtp_Pcm_DisableSp(Avtp_Pcm_t* pdu);
void Avtp_Pcm_SetEvt(Avtp_Pcm_t* pdu, uint8_t value);

/******************************************************************************
Expand Down
5 changes: 1 addition & 4 deletions include/avtp/acf/Can.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void Avtp_Can_SetCanIdentifier(Avtp_Can_t* pdu, uint32_t value);
void Avtp_Can_EnableMtv(Avtp_Can_t* pdu);
void Avtp_Can_DisableMtv(Avtp_Can_t* pdu);
void Avtp_Can_EnableRtr(Avtp_Can_t* pdu);
void Avtp_Can_DisaleRtr(Avtp_Can_t* pdu);
void Avtp_Can_DisableRtr(Avtp_Can_t* pdu);
void Avtp_Can_EnableEff(Avtp_Can_t* pdu);
void Avtp_Can_DisableEff(Avtp_Can_t* pdu);
void Avtp_Can_EnableBrs(Avtp_Can_t* pdu);
Expand All @@ -139,9 +139,6 @@ void Avtp_Can_EnableEsi(Avtp_Can_t* pdu);
void Avtp_Can_DisableEsi(Avtp_Can_t* pdu);





/**
* Copies the payload data and CAN frame ID into the ACF CAN frame. This function will
* also set the length and pad fields while inserting the padded bytes.
Expand Down
30 changes: 18 additions & 12 deletions include/avtp/acf/CanBrief.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of COVESA nor the names of its contributors may be
* * Neither the name of COVESA nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
Expand Down Expand Up @@ -66,8 +66,8 @@ typedef enum {
AVTP_CAN_BRIEF_FIELD_BRS,
AVTP_CAN_BRIEF_FIELD_FDF,
AVTP_CAN_BRIEF_FIELD_ESI,
AVTP_CAN_BRIEF_FIELD_CAN_BUS_ID,
AVTP_CAN_BRIEF_FIELD_CAN_IDENTIFIER,
AVTP_CAN_BRIEF_FIELD_CAN_BUS_ID,
AVTP_CAN_BRIEF_FIELD_CAN_IDENTIFIER,

/* Count number of fields for bound checks */
AVTP_CAN_BRIEF_FIELD_MAX
Expand Down Expand Up @@ -113,18 +113,24 @@ void Avtp_CanBrief_SetField(Avtp_CanBrief_t* can_pdu, Avtp_CanBriefFields_t fiel
void Avtp_CanBrief_SetAcfMsgType(Avtp_CanBrief_t* pdu, uint8_t value);
void Avtp_CanBrief_SetAcfMsgLength(Avtp_CanBrief_t* pdu, uint16_t value);
void Avtp_CanBrief_SetPad(Avtp_CanBrief_t* pdu, uint8_t value);
void Avtp_CanBrief_SetMtv(Avtp_CanBrief_t* pdu, uint8_t value);
void Avtp_CanBrief_SetRtr(Avtp_CanBrief_t* pdu, uint8_t value);
void Avtp_CanBrief_SetEff(Avtp_CanBrief_t* pdu, uint8_t value);
void Avtp_CanBrief_SetBrs(Avtp_CanBrief_t* pdu, uint8_t value);
void Avtp_CanBrief_SetFdf(Avtp_CanBrief_t* pdu, uint8_t value);
void Avtp_CanBrief_SetEsi(Avtp_CanBrief_t* pdu, uint8_t value);
void Avtp_CanBrief_EnableMtv(Avtp_Can_t* pdu);
void Avtp_CanBrief_DisableMtv(Avtp_Can_t* pdu);
void Avtp_CanBrief_EnableRtr(Avtp_Can_t* pdu);
void Avtp_CanBrief_DisableRtr(Avtp_Can_t* pdu);
void Avtp_CanBrief_EnableEff(Avtp_Can_t* pdu);
void Avtp_CanBrief_DisableEff(Avtp_Can_t* pdu);
void Avtp_CanBrief_EnableBrs(Avtp_Can_t* pdu);
void Avtp_CanBrief_DisableBrs(Avtp_Can_t* pdu);
void Avtp_CanBrief_EnableFdf(Avtp_Can_t* pdu);
void Avtp_CanBrief_DisableFdf(Avtp_Can_t* pdu);
void Avtp_CanBrief_EnableEsi(Avtp_Can_t* pdu);
void Avtp_CanBrief_DisableEsi(Avtp_Can_t* pdu);
void Avtp_CanBrief_SetCanBusId(Avtp_CanBrief_t* pdu, uint8_t value);
void Avtp_CanBrief_SetCanIdentifier(Avtp_CanBrief_t* pdu, uint32_t value);

/**
* Copies the payload data into the ACF CAN Brief frame. This function will also set the
* length and pad fields while inserting the padded bytes.
* length and pad fields while inserting the padded bytes.
*
* @param can_pdu Pointer to the first bit of an 1722 ACF CAN Brief PDU.
* @param frame_id ID of the CAN frame
Expand All @@ -133,12 +139,12 @@ void Avtp_CanBrief_SetCanIdentifier(Avtp_CanBrief_t* pdu, uint32_t value);
* @param can_variant Classic CAN or CAN-FD
* @returns Returns number of processed bytes (header + payload + padding)
*/
int Avtp_CanBrief_SetPayload(Avtp_CanBrief_t* can_pdu, uint32_t frame_id , uint8_t* payload,
int Avtp_CanBrief_SetPayload(Avtp_CanBrief_t* can_pdu, uint32_t frame_id , uint8_t* payload,
uint16_t payload_length, Avtp_CanVariant_t can_variant);

/**
* Finalizes the ACF CAN Brief frame. This function will set the
* length and pad fields while inserting the padded bytes.
* length and pad fields while inserting the padded bytes.
*
* @param can_pdu Pointer to the first bit of an 1722 ACF CAN PDU.
* @param payload Pointer to the payload byte array
Expand Down
17 changes: 11 additions & 6 deletions include/avtp/acf/FlexRay.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of COVESA nor the names of its contributors may be
* * Neither the name of COVESA nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
Expand Down Expand Up @@ -119,13 +119,18 @@ void Avtp_FlexRay_SetField(Avtp_FlexRay_t* pdu, Avtp_FlexRayFields_t field, uint
void Avtp_FlexRay_SetAcfMsgType(Avtp_FlexRay_t* pdu, uint8_t value);
void Avtp_FlexRay_SetAcfMsgLength(Avtp_FlexRay_t* pdu, uint16_t value);
void Avtp_FlexRay_SetPad(Avtp_FlexRay_t* pdu, uint8_t value);
void Avtp_FlexRay_SetMtv(Avtp_FlexRay_t* pdu, uint8_t value);
void Avtp_FlexRay_EnableMtv(Avtp_FlexRay_t* pdu);
void Avtp_FlexRay_DisableMtv(Avtp_FlexRay_t* pdu);
void Avtp_FlexRay_SetFrBusId(Avtp_FlexRay_t* pdu, uint8_t value);
void Avtp_FlexRay_SetChan(Avtp_FlexRay_t* pdu, uint8_t value);
void Avtp_FlexRay_SetStr(Avtp_FlexRay_t* pdu, uint8_t value);
void Avtp_FlexRay_SetSyn(Avtp_FlexRay_t* pdu, uint8_t value);
void Avtp_FlexRay_SetPre(Avtp_FlexRay_t* pdu, uint8_t value);
void Avtp_FlexRay_SetNfi(Avtp_FlexRay_t* pdu, uint8_t value);
void Avtp_FlexRay_EnableStr(Avtp_FlexRay_t* pdu);
void Avtp_FlexRay_DisableStr(Avtp_FlexRay_t* pdu);
void Avtp_FlexRay_EnableSyn(Avtp_FlexRay_t* pdu);
void Avtp_FlexRay_DisableSyn(Avtp_FlexRay_t* pdu);
void Avtp_FlexRay_EnablePre(Avtp_FlexRay_t* pdu);
void Avtp_FlexRay_DisablePre(Avtp_FlexRay_t* pdu);
void Avtp_FlexRay_EnableNfi(Avtp_FlexRay_t* pdu);
void Avtp_FlexRay_DisableNfi(Avtp_FlexRay_t* pdu);
void Avtp_FlexRay_SetMessageTimestamp(Avtp_FlexRay_t* pdu, uint64_t value);
void Avtp_FlexRay_SetFrFrameId(Avtp_FlexRay_t* pdu, uint16_t value);
void Avtp_FlexRay_SetCycle(Avtp_FlexRay_t* pdu, uint8_t value);
Expand Down
5 changes: 3 additions & 2 deletions include/avtp/acf/Lin.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of COVESA nor the names of its contributors may be
* * Neither the name of COVESA nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
Expand Down Expand Up @@ -104,7 +104,8 @@ void Avtp_Lin_SetField(Avtp_Lin_t* pdu, Avtp_LinFields_t field, uint64_t value);
void Avtp_Lin_SetAcfMsgType(Avtp_Lin_t* pdu, uint8_t value);
void Avtp_Lin_SetAcfMsgLength(Avtp_Lin_t* pdu, uint16_t value);
void Avtp_Lin_SetPad(Avtp_Lin_t* pdu, uint8_t value);
void Avtp_Lin_SetMtv(Avtp_Lin_t* pdu, uint8_t value);
void Avtp_Lin_EnableMtv(Avtp_Lin_t* pdu);
void Avtp_Lin_DisableMtv(Avtp_Lin_t* pdu);
void Avtp_Lin_SetLinBusId(Avtp_Lin_t* pdu, uint8_t value);
void Avtp_Lin_SetLinIdentifier(Avtp_Lin_t* pdu, uint8_t value);
void Avtp_Lin_SetMessageTimestamp(Avtp_Lin_t* pdu, uint64_t value);
Expand Down
5 changes: 3 additions & 2 deletions include/avtp/acf/Most.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of COVESA nor the names of its contributors may be
* * Neither the name of COVESA nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
Expand Down Expand Up @@ -113,7 +113,8 @@ void Avtp_Most_SetField(Avtp_Most_t* pdu, Avtp_MostFields_t field, uint64_t valu
void Avtp_Most_SetAcfMsgType(Avtp_Most_t* pdu, uint8_t value);
void Avtp_Most_SetAcfMsgLength(Avtp_Most_t* pdu, uint16_t value);
void Avtp_Most_SetPad(Avtp_Most_t* pdu, uint8_t value);
void Avtp_Most_SetMtv(Avtp_Most_t* pdu, uint8_t value);
void Avtp_Most_EnableMtv(Avtp_Most_t* pdu);
void Avtp_Most_DisableMtv(Avtp_Most_t* pdu);
void Avtp_Most_SetMostNetId(Avtp_Most_t* pdu, uint8_t value);
void Avtp_Most_SetMessageTimestamp(Avtp_Most_t* pdu, uint64_t value);
void Avtp_Most_SetDeviceId(Avtp_Most_t* pdu, uint16_t value);
Expand Down
5 changes: 3 additions & 2 deletions include/avtp/acf/Ntscf.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of COVESA nor the names of its contributors may be
* * Neither the name of COVESA nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
Expand Down Expand Up @@ -96,7 +96,8 @@ uint64_t Avtp_Ntscf_GetStreamId(Avtp_Ntscf_t* pdu);
void Avtp_Ntscf_SetField(Avtp_Ntscf_t* pdu, Avtp_NtscfFields_t field, uint64_t value);

void Avtp_Ntscf_SetSubtype(Avtp_Ntscf_t* pdu, uint8_t value);
void Avtp_Ntscf_SetSv(Avtp_Ntscf_t* pdu, uint8_t value);
void Avtp_Ntscf_EnableSv(Avtp_Ntscf_t* pdu);
void Avtp_Ntscf_DisableSv(Avtp_Ntscf_t* pdu);
void Avtp_Ntscf_SetVersion(Avtp_Ntscf_t* pdu, uint8_t value);
void Avtp_Ntscf_SetNtscfDataLength(Avtp_Ntscf_t* pdu, uint16_t value);
void Avtp_Ntscf_SetSequenceNum(Avtp_Ntscf_t* pdu, uint8_t value);
Expand Down
9 changes: 5 additions & 4 deletions include/avtp/acf/Sensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of COVESA nor the names of its contributors may be
* * Neither the name of COVESA nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
Expand Down Expand Up @@ -57,12 +57,12 @@ typedef enum {
AVTP_SENSOR_FIELD_ACF_MSG_TYPE = 0,
AVTP_SENSOR_FIELD_ACF_MSG_LENGTH,

/* ACF Sensor header fields */
/* ACF Sensor header fields */
AVTP_SENSOR_FIELD_MTV,
AVTP_SENSOR_FIELD_NUM_SENSOR,
AVTP_SENSOR_FIELD_SZ,
AVTP_SENSOR_FIELD_SENSOR_GROUP,
AVTP_SENSOR_FIELD_MESSAGE_TIMESTAMP,
AVTP_SENSOR_FIELD_MESSAGE_TIMESTAMP,

/* Count number of fields for bound checks */
AVTP_SENSOR_FIELD_MAX
Expand Down Expand Up @@ -103,7 +103,8 @@ void Avtp_Sensor_SetField(Avtp_Sensor_t* pdu, Avtp_SensorFields_t field, uint64_

void Avtp_Sensor_SetAcfMsgType(Avtp_Sensor_t* pdu, uint8_t value);
void Avtp_Sensor_SetAcfMsgLength(Avtp_Sensor_t* pdu, uint16_t value);
void Avtp_Sensor_SetMtv(Avtp_Sensor_t* pdu, uint8_t value);
void Avtp_Sensor_EnableMtv(Avtp_Sensor_t* pdu);
void Avtp_Sensor_DisableMtv(Avtp_Sensor_t* pdu);
void Avtp_Sensor_SetNumSensor(Avtp_Sensor_t* pdu, uint8_t value);
void Avtp_Sensor_SetSz(Avtp_Sensor_t* pdu, uint8_t value);
void Avtp_Sensor_SetSensorGroup(Avtp_Sensor_t* pdu, uint8_t value);
Expand Down
9 changes: 5 additions & 4 deletions include/avtp/acf/SensorBrief.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of COVESA nor the names of its contributors may be
* * Neither the name of COVESA nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
Expand Down Expand Up @@ -55,11 +55,11 @@ typedef enum {
/* ACF common header fields */
AVTP_SENSOR_BRIEF_FIELD_ACF_MSG_TYPE = 0,
AVTP_SENSOR_BRIEF_FIELD_ACF_MSG_LENGTH,
/* ACF Abbreviated Sensor header fields */
/* ACF Abbreviated Sensor header fields */
AVTP_SENSOR_BRIEF_FIELD_MTV,
AVTP_SENSOR_BRIEF_FIELD_NUM_SENSOR,
AVTP_SENSOR_BRIEF_FIELD_SZ,
AVTP_SENSOR_BRIEF_FIELD_SENSOR_GROUP,
AVTP_SENSOR_BRIEF_FIELD_SENSOR_GROUP,
/* Count number of fields for bound checks */
AVTP_SENSOR_FIELD_MAX
} Avtp_SensorBriefFields_t;
Expand Down Expand Up @@ -98,7 +98,8 @@ void Avtp_SensorBrief_SetField(Avtp_SensorBrief_t* pdu, Avtp_SensorBriefFields_t

void Avtp_SensorBrief_SetAcfMsgType(Avtp_SensorBrief_t* pdu, uint8_t value);
void Avtp_SensorBrief_SetAcfMsgLength(Avtp_SensorBrief_t* pdu, uint16_t value);
void Avtp_SensorBrief_SetMtv(Avtp_SensorBrief_t* pdu, uint8_t value);
void Avtp_SensorBrief_EnableMtv(Avtp_SensorBrief_t* pdu);
void Avtp_SensorBrief_DisableMtv(Avtp_SensorBrief_t* pdu);
void Avtp_SensorBrief_SetNumSensor(Avtp_SensorBrief_t* pdu, uint8_t value);
void Avtp_SensorBrief_SetSz(Avtp_SensorBrief_t* pdu, uint8_t value);
void Avtp_SensorBrief_SetSensorGroup(Avtp_SensorBrief_t* pdu, uint8_t value);
Expand Down
Loading
Loading