diff options
author | norly <ny-git@enpas.org> | 2019-02-24 04:35:59 +0100 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2019-02-24 04:35:59 +0100 |
commit | 8c73fd11fe9cac11ba2fdd657b84f845632af3d0 (patch) | |
tree | 103046069c53a18dce2a2b839ca1e132cc09172e /vw-bap-send.c | |
parent | 04795b52688dde6f4ad0284a633f5ffb4aec80e0 (diff) |
Rename BAP 'function' to 'port'
This is more generic, thus allowing for interpreting it as 'registers',
and easier to understand when coming from UDP/IP.
Diffstat (limited to 'vw-bap-send.c')
-rw-r--r-- | vw-bap-send.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vw-bap-send.c b/vw-bap-send.c index 04f9118..55cd222 100644 --- a/vw-bap-send.c +++ b/vw-bap-send.c @@ -99,10 +99,10 @@ int main(int argc, char **argv) unsigned bap_multiframe; unsigned bap_opcode; unsigned bap_node; - unsigned bap_function; + unsigned bap_port; if (argc < 8) { - printf("syntax: %s IFNAME CAN_ID multiframe bap_opcode bap_node bap_function bap_data\n", argv[0]); + printf("syntax: %s IFNAME CAN_ID multiframe bap_opcode bap_node bap_port bap_data\n", argv[0]); return 1; } @@ -111,7 +111,7 @@ int main(int argc, char **argv) bap_multiframe = strtoul(argv[3], NULL, 0); bap_opcode = strtoul(argv[4], NULL, 0); bap_node = strtoul(argv[5], NULL, 0); - bap_function = strtoul(argv[6], NULL, 0); + bap_port = strtoul(argv[6], NULL, 0); /* bap_data */ @@ -133,7 +133,7 @@ int main(int argc, char **argv) bap_frame->is_multiframe = !(!bap_multiframe); bap_frame->opcode = bap_opcode & 0x7; bap_frame->node = bap_node & 0x3f; - bap_frame->function = bap_function & 0x3f; + bap_frame->port = bap_port & 0x3f; bap_frame->len = 0; /* Fill payload */ |